We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7bfb3 commit 076562eCopy full SHA for 076562e
packages/runtime/src/plugins/policy/policy-handler.ts
@@ -183,9 +183,10 @@ export class PolicyHandler<Schema extends SchemaDef> extends OperationNodeTransf
183
}
184
185
186
- let result = super.transformInsertQuery(node);
187
// merge updated onConflict
188
- result = onConflict ? { ...result, onConflict } : result;
+ const processedNode = onConflict ? { ...node, onConflict } : node;
+
189
+ const result = super.transformInsertQuery(processedNode);
190
191
if (!node.returning) {
192
return result;
0 commit comments