Skip to content

Commit

Permalink
Fixup some purge types
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Oct 7, 2024
1 parent 8a6703e commit 67d8dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/purge-syntax-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const listCommand = new Deno.Command("wrangler", {

const listResult = await listCommand.output();
const keys = JSON.parse(new TextDecoder().decode(listResult.stdout).trim()).map(
(k) => k.name
(k: { name: string }) => k.name
);

const keysToDelete = keys.filter(
(key) => !key.startsWith(`${SYNTAX_VERSION}:`)
(key: string) => !key.startsWith(`${SYNTAX_VERSION}:`)
);

if (keysToDelete.length > 0) {
Expand Down

0 comments on commit 67d8dd8

Please sign in to comment.