@ronin/compiler 0.17.5-leo-ron-1099-experimental-387 → 0.17.5
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.
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2004,11 +2004,10 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
|
|
2004
2004
|
let json;
|
2005
2005
|
switch (action) {
|
2006
2006
|
case "create": {
|
2007
|
-
const
|
2008
|
-
|
2009
|
-
json = `json_insert(${field}, '$.${slug2}', ${value})`;
|
2007
|
+
const value = prepareStatementValue(statementParams, jsonValue);
|
2008
|
+
json = `json_insert(${field}, '$.${slug}', ${value})`;
|
2010
2009
|
if (!existingModel[pluralType]) existingModel[pluralType] = {};
|
2011
|
-
existingModel[pluralType][
|
2010
|
+
existingModel[pluralType][slug] = jsonValue;
|
2012
2011
|
break;
|
2013
2012
|
}
|
2014
2013
|
case "alter": {
|