fix
This commit is contained in:
@@ -400,7 +400,7 @@ export class Rank {
|
||||
let key = this.keyName.getNameWithPlus(config.name);
|
||||
if(config.isTimestamp) score = this.handleTimestamp(score, config.len);
|
||||
if(config.reverse) {
|
||||
let pow = Math.pow(10, config.len + 1);
|
||||
let pow = Math.pow(10, config.len);
|
||||
score = pow - 1 - score;
|
||||
}
|
||||
await redisClient().zaddAsync(key, score, this.composeFields(this.key, myId));
|
||||
|
||||
Reference in New Issue
Block a user