diff --git a/apps/sim/lib/core/idempotency/service.ts b/apps/sim/lib/core/idempotency/service.ts index fad66b131..aa2bcbe96 100644 --- a/apps/sim/lib/core/idempotency/service.ts +++ b/apps/sim/lib/core/idempotency/service.ts @@ -228,7 +228,9 @@ export class IdempotencyService { result: inProgressResult, createdAt: new Date(), }) - .onConflictDoNothing() + .onConflictDoNothing({ + target: [idempotencyKey.key, idempotencyKey.namespace], + }) .returning({ key: idempotencyKey.key }) if (insertResult.length > 0) {