mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
limiting leaderboards to english
This commit is contained in:
parent
1d5d30f6ad
commit
678d4932df
1 changed files with 4 additions and 3 deletions
|
@ -822,10 +822,11 @@ class Leaderboard {
|
|||
async function checkLeaderboards(resultObj, type) {
|
||||
try {
|
||||
if (
|
||||
(resultObj.mode === "words" &&
|
||||
((resultObj.mode === "words" &&
|
||||
["10", "100"].includes(String(resultObj.mode2))) ||
|
||||
(resultObj.mode === "time" &&
|
||||
["15", "60"].includes(String(resultObj.mode2)))
|
||||
(resultObj.mode === "time" &&
|
||||
["15", "60"].includes(String(resultObj.mode2)))) &&
|
||||
resultObj.language === "english"
|
||||
) {
|
||||
return admin
|
||||
.firestore()
|
||||
|
|
Loading…
Reference in a new issue