prisma-guard 1.5.1 → 1.6.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.
@@ -754,6 +754,9 @@ function applyBuiltShape(built, body, isUniqueMethod) {
754
754
  } else if (modified) {
755
755
  parseable = { ...bodyObj, where };
756
756
  }
757
+ } else if ("where" in bodyObj && hasWhereForced(built.forcedWhere) && !built.zodSchema.shape.where) {
758
+ const { where: _, ...rest } = bodyObj;
759
+ parseable = rest;
757
760
  }
758
761
  }
759
762
  const validated = built.zodSchema.parse(parseable);