orchid-orm 1.13.8 → 1.13.9
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 +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1310,6 +1310,7 @@ const applyRelation = (qb, { relationName, relation, dbTable, otherDbTable }, de
|
|
|
1310
1310
|
};
|
|
1311
1311
|
const makeRelationQuery = (table, relationName, data, q) => {
|
|
1312
1312
|
Object.defineProperty(table, relationName, {
|
|
1313
|
+
configurable: true,
|
|
1313
1314
|
get() {
|
|
1314
1315
|
var _a;
|
|
1315
1316
|
const toTable = q.clone();
|
|
@@ -1333,6 +1334,11 @@ const makeRelationQuery = (table, relationName, data, q) => {
|
|
|
1333
1334
|
return query[prop];
|
|
1334
1335
|
}
|
|
1335
1336
|
});
|
|
1337
|
+
},
|
|
1338
|
+
set(value) {
|
|
1339
|
+
Object.defineProperty(this, relationName, {
|
|
1340
|
+
value
|
|
1341
|
+
});
|
|
1336
1342
|
}
|
|
1337
1343
|
});
|
|
1338
1344
|
};
|