mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
fixed a bug where the website would say the result was not saved when the user got a pb in time 60
This commit is contained in:
parent
dcd8a37d55
commit
2e91330224
1 changed files with 0 additions and 4 deletions
|
@ -525,7 +525,6 @@ exports.testCompleted = functions.https.onCall((request, response) => {
|
|||
`sending command to the bot to update the role for user ${request.uid} with wpm ${obj.wpm}`
|
||||
);
|
||||
updateDiscordRole(userdata.discordId, Math.round(obj.wpm));
|
||||
return;
|
||||
}
|
||||
returnobj.resultCode = 2;
|
||||
} else {
|
||||
|
@ -536,9 +535,6 @@ exports.testCompleted = functions.https.onCall((request, response) => {
|
|||
);
|
||||
returnobj.resultCode = 1;
|
||||
}
|
||||
console.error(
|
||||
`user ${request.uid} + ${JSON.stringify(returnobj)}`
|
||||
);
|
||||
return returnobj;
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
Loading…
Reference in a new issue