mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 07:23:39 +08:00
addde max consistency check
This commit is contained in:
parent
18993b18a4
commit
7a2bc1b9ef
1 changed files with 7 additions and 1 deletions
|
@ -1055,7 +1055,13 @@ exports.testCompleted = functions.https.onRequest(async (request, response) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (obj.wpm <= 0 || obj.wpm > 350 || obj.acc < 50 || obj.acc > 100) {
|
||||
if (
|
||||
obj.wpm <= 0 ||
|
||||
obj.wpm > 350 ||
|
||||
obj.acc < 50 ||
|
||||
obj.acc > 100 ||
|
||||
obj.consistency > 100
|
||||
) {
|
||||
response.status(200).send({ data: { resultCode: -1 } });
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue