Skip to content

Commit 97a3acb

Browse files
authored
Merge branch 'main' into feat/solana-devnet
2 parents e21f8ca + c9b72cb commit 97a3acb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/api/src/routes/keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ app.post("/:id/rotate", async (c) => {
9595
await tx
9696
.update(apiKeys)
9797
.set({ isActive: false, updatedAt: new Date() })
98-
.where(eq(apiKeys.id, keyId));
98+
.where(and(eq(apiKeys.id, keyId), eq(apiKeys.isActive, true)));
9999

100100
return tx
101101
.insert(apiKeys)

0 commit comments

Comments
 (0)