@ronin/compiler 0.13.1-leo-ron-1071-experimental-288 → 0.13.1-leo-ron-1071-experimental-289
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 +1 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2193,16 +2193,9 @@ var handleTo = (models, model, statementParams, queryType, dependencyStatements,
|
|
2193
2193
|
for (const field of subQueryFields || []) {
|
2194
2194
|
getFieldFromModel(model, field, "to");
|
2195
2195
|
}
|
2196
|
-
const defaultFieldsToAdd = subQuerySelectedFields ? Object.entries(flatten(defaultFields)).filter(([key]) => {
|
2197
|
-
return !subQuerySelectedFields.includes(key);
|
2198
|
-
}) : [];
|
2199
2196
|
let statement2 = "";
|
2200
2197
|
if (subQuerySelectedFields) {
|
2201
|
-
const
|
2202
|
-
...subQueryFields,
|
2203
|
-
...defaultFieldsToAdd.map(([key]) => key)
|
2204
|
-
];
|
2205
|
-
const columns = selectedFields.map((field) => {
|
2198
|
+
const columns = subQueryFields.map((field) => {
|
2206
2199
|
return getFieldFromModel(model, field, "to").fieldSelector;
|
2207
2200
|
});
|
2208
2201
|
statement2 = `(${columns.join(", ")}) `;
|
package/package.json
CHANGED