We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0d301a commit 03bb2d2Copy full SHA for 03bb2d2
apps/sim/lib/core/idempotency/service.ts
@@ -148,7 +148,12 @@ export class IdempotencyService {
148
149
await db
150
.delete(idempotencyKey)
151
- .where(eq(idempotencyKey.key, normalizedKey))
+ .where(
152
+ and(
153
+ eq(idempotencyKey.key, normalizedKey),
154
+ eq(idempotencyKey.namespace, this.config.namespace)
155
+ )
156
157
.catch((err) => logger.warn(`Failed to clean up expired key ${normalizedKey}:`, err))
158
}
159
0 commit comments