@ronin/compiler
Advanced tools
Comparing version 0.11.4-leo-ron-1083-experimental-241 to 0.11.4-leo-ron-1083-experimental-242
@@ -661,3 +661,4 @@ // src/utils/helpers.ts | ||
const actions = field.actions || {}; | ||
const targetTable = getModelBySlug([...models, model], field.target).table; | ||
const modelList = models.some((item) => item.slug === model.slug) ? models : [...models, model]; | ||
const targetTable = getModelBySlug(modelList, field.target).table; | ||
statement += ` REFERENCES ${targetTable}("id")`; | ||
@@ -664,0 +665,0 @@ for (const trigger in actions) { |
{ | ||
"name": "@ronin/compiler", | ||
"version": "0.11.4-leo-ron-1083-experimental-241", | ||
"version": "0.11.4-leo-ron-1083-experimental-242", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Compiles RONIN queries to SQL statements.", |
462733
7796