mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-23 05:47:59 -05:00
delete needs to account for namespace
This commit is contained in:
@@ -148,7 +148,12 @@ export class IdempotencyService {
|
||||
|
||||
await db
|
||||
.delete(idempotencyKey)
|
||||
.where(eq(idempotencyKey.key, normalizedKey))
|
||||
.where(
|
||||
and(
|
||||
eq(idempotencyKey.key, normalizedKey),
|
||||
eq(idempotencyKey.namespace, this.config.namespace)
|
||||
)
|
||||
)
|
||||
.catch((err) => logger.warn(`Failed to clean up expired key ${normalizedKey}:`, err))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user