@zenstackhq/orm 3.2.0 → 3.2.1

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 CHANGED
@@ -3911,7 +3911,7 @@ var UpdateOperationHandler = class extends BaseOperationHandler {
3911
3911
  const result = await this.safeTransaction(async (tx) => {
3912
3912
  const updateResult = await this.update(tx, this.model, args.where, args.data, void 0, void 0, void 0, selectedFields);
3913
3913
  if (needReadBack) {
3914
- const readFilter = updateResult ?? args.where;
3914
+ const readFilter = updateResult ? getIdValues(this.schema, this.model, updateResult) : args.where;
3915
3915
  let readBackResult = void 0;
3916
3916
  readBackResult = await this.readUnique(tx, this.model, {
3917
3917
  select: args.select,