mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
better pb log
This commit is contained in:
parent
9e6728dbed
commit
c47d93ced0
1 changed files with 12 additions and 1 deletions
|
@ -264,7 +264,18 @@ class ResultController {
|
|||
let addedResult = await ResultDAO.addResult(uid, result);
|
||||
|
||||
if (isPb) {
|
||||
Logger.log("result_saved_pb", addedResult.insertedId, uid);
|
||||
Logger.log(
|
||||
"user_new_pb",
|
||||
{
|
||||
rid: addedResult.insertedId,
|
||||
mode: result.mode + " " + result.mode2,
|
||||
wpm: result.wpm,
|
||||
acc: result.acc,
|
||||
raw: result.rawWpm,
|
||||
con: result.consistency,
|
||||
},
|
||||
uid
|
||||
);
|
||||
}
|
||||
|
||||
return res.status(200).json({
|
||||
|
|
Loading…
Reference in a new issue