mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-23 05:47:59 -05:00
fix(idempotency): add conflict target to atomicallyClaimDb query
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user