@ronin/compiler 0.17.3-ben-ron-1099-experimental-381 → 0.17.4-corny-ron-1099-experimental-382

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 +10 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1987,11 +1987,16 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
1987
1987
  statementParts.push("WHEN", `(${withStatement})`);
1988
1988
  }
1989
1989
  const effectStatements = trigger.effects.map((effectQuery) => {
1990
- return compileQueryInput(effectQuery, models, null, {
1991
- returning: false,
1992
- parentModel: existingModel,
1993
- inlineDefaults: options.inlineDefaults
1994
- }).main.statement;
1990
+ return compileQueryInput(
1991
+ QUERY_SYMBOLS.QUERY in effectQuery ? effectQuery[QUERY_SYMBOLS.QUERY] : effectQuery,
1992
+ models,
1993
+ null,
1994
+ {
1995
+ returning: false,
1996
+ parentModel: existingModel,
1997
+ inlineDefaults: options.inlineDefaults
1998
+ }
1999
+ ).main.statement;
1995
2000
  });
1996
2001
  statementParts.push("BEGIN");
1997
2002
  statementParts.push(`${effectStatements.join("; ")};`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.3-ben-ron-1099-experimental-381",
3
+ "version": "0.17.4-corny-ron-1099-experimental-382",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {