mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-09 21:06:37 +08:00
made sure to return board info, and triple checking that the board is empty to not return uids
This commit is contained in:
parent
a6b43d7518
commit
48bb520795
1 changed files with 9 additions and 1 deletions
|
|
@ -928,7 +928,15 @@ exports.getLeaderboard = functions.https.onCall((request, response) => {
|
|||
|
||||
return lbdata;
|
||||
} else {
|
||||
return [];
|
||||
if (
|
||||
lbdata.board === undefined ||
|
||||
lbdata.board === [] ||
|
||||
lbdata.board.length === 0
|
||||
) {
|
||||
return lbdata;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue