orchid-orm 1.17.12 → 1.17.14

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 CHANGED
@@ -248,9 +248,7 @@ class BelongsToVirtualColumn extends pqb.VirtualColumn {
248
248
  update(q, ctx, set) {
249
249
  q.q.wrapInTransaction = true;
250
250
  const data = set[this.key];
251
- if (this.nestedUpdate(q, set, data, ctx)) {
252
- ctx.willSetKeys = true;
253
- }
251
+ this.nestedUpdate(q, set, data, ctx);
254
252
  }
255
253
  }
256
254
  const makeBelongsToMethod = (relation, relationName, query) => {
@@ -459,7 +457,6 @@ const nestedUpdate$3 = ({ query, primaryKeys, foreignKeys, len }) => {
459
457
  }
460
458
  });
461
459
  }
462
- return !params.update && !params.upsert;
463
460
  };
464
461
  };
465
462