Skip to content

Commit

Permalink
feat: 🎸 minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Dec 16, 2023
1 parent 5f1228f commit aba573f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster/RedisCluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class RedisCluster implements Printable {
if (typeof cmd !== 'string' || !cmd) throw new Error('INVALID_COMMAND');
cmd = cmd.toUpperCase();
const isWrite = commands.write.has(cmd);
const key = call.key || (args[1] + '') || '';
const key = call.key || (args.length > 1 ? args[1] + '' : '') || '';
const client = await this.getClientForKey(key, isWrite);
call.client = client;
return await this.__call(call);
Expand Down

0 comments on commit aba573f

Please sign in to comment.