Skip to content

Commit

Permalink
map names at the end of function
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jul 5, 2024
1 parent e148196 commit 6c21271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/cloudflare-kv-binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export default defineDriver((opts: KVOptions) => {
do {
const kvList = await binding.list({ prefix: base || undefined, cursor });

keys.push(...kvList.keys.map((key) => key.name));
keys.push(...kvList.keys);
cursor = (kvList.list_complete ? undefined : kvList.cursor) as
| string
| undefined;
} while (cursor);

return keys;
return keys.map((key) => key.name);
}

return {
Expand Down

0 comments on commit 6c21271

Please sign in to comment.