@zenstackhq/orm 3.4.2 → 3.4.4
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.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -8174,6 +8174,9 @@ var SchemaDbPusher = class {
|
|
|
8174
8174
|
}
|
|
8175
8175
|
for (const field of Object.values(model.fields)) {
|
|
8176
8176
|
if (field.relation && field.relation.fields && field.relation.references) {
|
|
8177
|
+
if (field.type === model.name) {
|
|
8178
|
+
continue;
|
|
8179
|
+
}
|
|
8177
8180
|
const targetModel = requireModel(this.schema, field.type);
|
|
8178
8181
|
graph.push([
|
|
8179
8182
|
model,
|