saving to database if result was a pb

This commit is contained in:
Jack 2021-09-07 15:02:58 +01:00
parent e7673576fd
commit 6a8a9d7bbc

View file

@ -195,6 +195,10 @@ class ResultController {
const isPb = await UserDAO.checkIfPb(uid, result);
const tagPbs = await UserDAO.checkIfTagPb(uid, result);
if (isPb) {
result.isPb = true;
}
if (result.mode === "time" && String(result.mode2) === "60") {
UserDAO.incrementBananas(uid, result.wpm);
if (isPb && user.discordId) {