Skip to content

Commit 03bb2d2

Browse files
committed
delete needs to account for namespace
1 parent e0d301a commit 03bb2d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,12 @@ export class IdempotencyService {
148148

149149
await db
150150
.delete(idempotencyKey)
151-
.where(eq(idempotencyKey.key, normalizedKey))
151+
.where(
152+
and(
153+
eq(idempotencyKey.key, normalizedKey),
154+
eq(idempotencyKey.namespace, this.config.namespace)
155+
)
156+
)
152157
.catch((err) => logger.warn(`Failed to clean up expired key ${normalizedKey}:`, err))
153158
}
154159

0 commit comments

Comments
 (0)