We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6c6ba5 commit 3113025Copy full SHA for 3113025
src/commands/sorted-set.ts
@@ -18,9 +18,9 @@ export function ZADD<T extends TSchema>(
18
if (entries.length === 0) {
19
throw new Error("At least one entry is required");
20
}
21
- const flatEntries: RedisValue[] = new Array(entries.length * 2);
+ const flatEntries: RedisValue[] = [];
22
for (const [score, value] of entries) {
23
- flatEntries.push(score);
+ flatEntries.push(String(score));
24
flatEntries.push(key.encode(value));
25
26
return new RedisCommand<number>(["ZADD", key.name, ...flatEntries]);
0 commit comments