Skip to content

Commit 2a6bfbe

Browse files
committed
chore: log high wpm results
1 parent 7018b83 commit 2a6bfbe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

backend/src/api/controllers/result.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,15 @@ export async function addResult(
284284
await addImportantLog("suspicious_user_result", completedEvent, uid);
285285
}
286286

287+
if (
288+
completedEvent.mode === "time" &&
289+
(completedEvent.mode2 === "60" || completedEvent.mode2 === "15") &&
290+
completedEvent.wpm > 250 &&
291+
user.lbOptOut !== true
292+
) {
293+
await addImportantLog("highwpm_user_result", completedEvent, uid);
294+
}
295+
287296
if (anticheatImplemented()) {
288297
if (
289298
!validateResult(

0 commit comments

Comments
 (0)