Skip to content

Commit c4590a2

Browse files
committed
chore: log only up to 2 minute tests
1 parent c9986bb commit c4590a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/api/controllers/result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export async function addResult(
214214
const completedEvent = req.body.result;
215215
completedEvent.uid = uid;
216216

217-
if (user.suspicious) {
217+
if (user.suspicious && completedEvent.testDuration <= 120) {
218218
await addImportantLog("suspicious_user_result", completedEvent, uid);
219219
}
220220

0 commit comments

Comments
 (0)