From 2283d2f660e6422fff36187a3c8339c39a3fb7f4 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Tue, 30 Sep 2025 17:33:18 -0700 Subject: [PATCH] fix(policy): post-update issue when no rows are updated --- packages/runtime/src/plugins/policy/policy-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime/src/plugins/policy/policy-handler.ts b/packages/runtime/src/plugins/policy/policy-handler.ts index 597ac249..49e5afd1 100644 --- a/packages/runtime/src/plugins/policy/policy-handler.ts +++ b/packages/runtime/src/plugins/policy/policy-handler.ts @@ -124,7 +124,7 @@ export class PolicyHandler extends OperationNodeTransf // --- Post mutation work --- - if (hasPostUpdatePolicies) { + if (hasPostUpdatePolicies && result.rows.length > 0) { // entities updated filter const idConditions = this.buildIdConditions(mutationModel, result.rows);