Skip to content

Commit

Permalink
fix: make getMany() etc. worked in bun.js (#251) (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xu-pixel authored Dec 20, 2024
1 parent 9d1bdbf commit 877ec69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,11 @@ export function createListSelector<T1, T2 extends KvId>(
? undefined!
: prefixKey;

const selector = { prefix, start, end };
if (!selector.end) delete selector.end;
if (!selector.start) delete selector.start;
// Return list selector
return {
prefix,
start,
end,
};
return selector;
}

/**
Expand Down

0 comments on commit 877ec69

Please sign in to comment.