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.
package/dist/runtime/index.js
CHANGED
|
@@ -724,6 +724,9 @@ function applyBuiltShape(built, body, isUniqueMethod) {
|
|
|
724
724
|
} else if (modified) {
|
|
725
725
|
parseable = { ...bodyObj, where };
|
|
726
726
|
}
|
|
727
|
+
} else if ("where" in bodyObj && hasWhereForced(built.forcedWhere) && !built.zodSchema.shape.where) {
|
|
728
|
+
const { where: _, ...rest } = bodyObj;
|
|
729
|
+
parseable = rest;
|
|
727
730
|
}
|
|
728
731
|
}
|
|
729
732
|
const validated = built.zodSchema.parse(parseable);
|