fix(idempotency): add conflict target to atomicallyClaimDb query

This commit is contained in:
Vikhyath Mondreti
2026-01-22 18:04:23 -08:00
parent aa99db6fdd
commit e0d301aca7

View File

@@ -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) {