Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 6, 2020
1 parent 746222d commit 87dd6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/redis/sorted.js
Expand Up @@ -296,7 +296,7 @@ module.exports = function (module) {
seen[value] = 1;

if (params.withScores) {
returnData.push({ value: value, score: parseFloat(data[i + 2]) });
returnData.push({ value: value, score: parseFloat(data[i + 1]) });
} else {
returnData.push(value);
}
Expand Down

0 comments on commit 87dd6c8

Please sign in to comment.