mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
fixed typo
This commit is contained in:
parent
6a8a9d7bbc
commit
b931730ae9
1 changed files with 3 additions and 3 deletions
|
@ -58,11 +58,11 @@ class LeaderboardsDAO {
|
|||
])
|
||||
.toArray();
|
||||
|
||||
let rerval = undefined;
|
||||
let retval = undefined;
|
||||
lb.forEach((lbEntry, index) => {
|
||||
lbEntry.rank = index + 1;
|
||||
if (uid && lbEntry.uid === uid) {
|
||||
rerval = index + 1;
|
||||
retval = index + 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -75,7 +75,7 @@ class LeaderboardsDAO {
|
|||
.collection(`leaderboards.${language}.${mode}.${mode2}`)
|
||||
.insertMany(lb);
|
||||
|
||||
if (rerval) {
|
||||
if (retval) {
|
||||
return {
|
||||
message: "Successfully updated leaderboard",
|
||||
rank: retval,
|
||||
|
|
Loading…
Reference in a new issue