@ronin/compiler 0.15.0-leo-ron-1099-1-experimental-363 → 0.15.0
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 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -566,14 +566,8 @@ var handleTo = (models, model, statementParams, queryType, dependencyStatements,
|
|
566
566
|
// src/instructions/using.ts
|
567
567
|
var handleUsing = (model, instructions) => {
|
568
568
|
const normalizedUsing = Array.isArray(instructions.using) ? Object.fromEntries(instructions.using.map((presetSlug) => [presetSlug, null])) : instructions.using;
|
569
|
-
if ("links" in normalizedUsing) {
|
570
|
-
for (const field of model.fields) {
|
571
|
-
if (field.type !== "link" || field.kind === "many") continue;
|
572
|
-
normalizedUsing[field.slug] = null;
|
573
|
-
}
|
574
|
-
}
|
575
569
|
for (const presetSlug in normalizedUsing) {
|
576
|
-
if (!Object.hasOwn(normalizedUsing, presetSlug)
|
570
|
+
if (!Object.hasOwn(normalizedUsing, presetSlug)) continue;
|
577
571
|
const arg = normalizedUsing[presetSlug];
|
578
572
|
const preset = model.presets?.find((preset2) => preset2.slug === presetSlug);
|
579
573
|
if (!preset) {
|