Skip to content

Commit bb514a6

Browse files
waleedlatif1claude
andcommitted
fix(audit): use actual deletedCount in bulk API key revoke description
The description was using keys.length (requested count) instead of deletedCount (actual count), which could differ if some keys didn't exist. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6f60475 commit bb514a6

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/api/workspaces/[id]/api-keys

1 file changed

+1
-1
lines changed

apps/sim/app/api/workspaces/[id]/api-keys/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export async function DELETE(
257257
actorEmail: session?.user?.email,
258258
action: AuditAction.API_KEY_REVOKED,
259259
resourceType: AuditResourceType.API_KEY,
260-
description: `Revoked ${keys.length} workspace API key(s)`,
260+
description: `Revoked ${deletedCount} workspace API key(s)`,
261261
metadata: { keyIds: keys, deletedCount, keyType: 'workspace' },
262262
request,
263263
})

0 commit comments

Comments
 (0)