prisma-guard 1.27.0 → 1.27.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/runtime/index.js
CHANGED
|
@@ -996,8 +996,14 @@ function tryInlineForcedField(result, field, forcedValue) {
|
|
|
996
996
|
if (!isPlainObject(forcedValue))
|
|
997
997
|
return false;
|
|
998
998
|
const existing = result[field];
|
|
999
|
-
if (!isPlainObject(existing))
|
|
1000
|
-
|
|
999
|
+
if (!isPlainObject(existing)) {
|
|
1000
|
+
const merged2 = { equals: existing };
|
|
1001
|
+
for (const [op, value] of Object.entries(forcedValue)) {
|
|
1002
|
+
merged2[op] = deepClone(value);
|
|
1003
|
+
}
|
|
1004
|
+
result[field] = merged2;
|
|
1005
|
+
return true;
|
|
1006
|
+
}
|
|
1001
1007
|
const merged = { ...existing };
|
|
1002
1008
|
for (const [op, value] of Object.entries(forcedValue)) {
|
|
1003
1009
|
if (op in merged) {
|