mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 22:23:32 +08:00
fixed test completed not returning data
This commit is contained in:
parent
a3129295bc
commit
9921688e7d
1 changed files with 2 additions and 2 deletions
|
@ -389,11 +389,11 @@ exports.testCompleted = functions.https.onCall((request, response) => {
|
|||
request.obj
|
||||
)}`
|
||||
);
|
||||
return -1;
|
||||
return { resultCode: -1 };
|
||||
}
|
||||
|
||||
if (obj.wpm <= 0 || obj.wpm > 350 || obj.acc < 50 || obj.acc > 100) {
|
||||
return -1;
|
||||
return { resultCode: -1 };
|
||||
}
|
||||
|
||||
let keySpacing = null;
|
||||
|
|
Loading…
Reference in a new issue