mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
not checking leaderboards and pb if a funbox is active
This commit is contained in:
parent
ebd90ff37c
commit
7808ab17b6
1 changed files with 8 additions and 0 deletions
|
@ -317,6 +317,9 @@ exports.checkNameAvailability = functions.https.onCall(
|
|||
|
||||
function checkIfPB(uid, obj, userdata) {
|
||||
let pbs = null;
|
||||
if (obj.funbox !== "none") {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
pbs = userdata.personalBests;
|
||||
if (pbs === undefined) {
|
||||
|
@ -1865,6 +1868,11 @@ async function checkLeaderboards(
|
|||
// };
|
||||
//
|
||||
try {
|
||||
if (resultObj.funbox !== "none") {
|
||||
return {
|
||||
insertedAt: null,
|
||||
};
|
||||
}
|
||||
if (emailVerified === false)
|
||||
return {
|
||||
insertedAt: null,
|
||||
|
|
Loading…
Reference in a new issue