mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-13 01:57:38 +08:00
bail out doesnt cause an error anymore, and can only work for long tests
This commit is contained in:
parent
5385345159
commit
2e8077e2af
1 changed files with 10 additions and 1 deletions
|
@ -464,7 +464,16 @@ exports.testCompleted = functions.https.onCall(async (request, response) => {
|
|||
}
|
||||
|
||||
if (!validateResult(obj)) {
|
||||
return { resultCode: -4 };
|
||||
if (
|
||||
obj.bailedOut &&
|
||||
((obj.mode === "time" && obj.mode2 >= 3600) ||
|
||||
(obj.mode === "words" && obj.mode2 >= 5000) ||
|
||||
obj.mode === "custom")
|
||||
) {
|
||||
//dont give an error
|
||||
} else {
|
||||
return { resultCode: -4 };
|
||||
}
|
||||
}
|
||||
|
||||
let keySpacing = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue