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:
Jack 2020-07-12 16:10:02 +01:00
parent dcd8a37d55
commit 2e91330224

View file

@ -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) => {