Skip to content

Commit

Permalink
perf(cloudflare-kv-binding): add missing base argument on getKeys (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Sep 4, 2024
1 parent ddce480 commit 04bfe12
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 @@ -65,8 +65,8 @@ export default defineDriver((opts: KVOptions) => {
const binding = getKVBinding(opts.binding);
return binding.delete(key);
},
getKeys() {
return getKeys().then((keys) =>
getKeys(base) {
return getKeys(base).then((keys) =>
keys.map((key) => (opts.base ? key.slice(opts.base.length) : key))
);
},
Expand Down

0 comments on commit 04bfe12

Please sign in to comment.