Skip to content

Commit e0d301a

Browse files
committed
fix(idempotency): add conflict target to atomicallyClaimDb query
1 parent aa99db6 commit e0d301a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/sim/lib/core/idempotency/service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ export class IdempotencyService {
228228
result: inProgressResult,
229229
createdAt: new Date(),
230230
})
231-
.onConflictDoNothing()
231+
.onConflictDoNothing({
232+
target: [idempotencyKey.key, idempotencyKey.namespace],
233+
})
232234
.returning({ key: idempotencyKey.key })
233235

234236
if (insertResult.length > 0) {

0 commit comments

Comments
 (0)