From 2e9133022465230c647637e248e3fd6370ac7d2f Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 12 Jul 2020 16:10:02 +0100 Subject: [PATCH] fixed a bug where the website would say the result was not saved when the user got a pb in time 60 --- functions/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/functions/index.js b/functions/index.js index 67b8cbff0..aab8ca2e7 100644 --- a/functions/index.js +++ b/functions/index.js @@ -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) => {