mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
saving to database if result was a pb
This commit is contained in:
parent
e7673576fd
commit
6a8a9d7bbc
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue