@ronin/compiler 0.11.4-leo-ron-1083-2-experimental-240 → 0.11.4-leo-ron-1083-experimental-241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -658,7 +658,7 @@ var getFieldStatement = (models, model, field) => {
658
658
  if (field.type === "link") {
659
659
  if (field.kind === "many") return null;
660
660
  const actions = field.actions || {};
661
- const targetTable = getModelBySlug(models, field.target).table;
661
+ const targetTable = getModelBySlug([...models, model], field.target).table;
662
662
  statement += ` REFERENCES ${targetTable}("id")`;
663
663
  for (const trigger in actions) {
664
664
  const triggerName = trigger.toUpperCase().slice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.11.4-leo-ron-1083-2-experimental-240",
3
+ "version": "0.11.4-leo-ron-1083-experimental-241",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {