added a log

This commit is contained in:
Jack 2020-07-09 11:27:16 +01:00
parent 9cb1620b55
commit 77401ebd2a

View file

@ -396,6 +396,10 @@ 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));
} else {
console.log(
`not updating role for user ${request.uid} higher pb found ${besttime60} than ${obj.wpm}`
);
}
return;
}