mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-04-29 21:41:08 +08:00
added one more error
This commit is contained in:
parent
3e3b8fbd64
commit
2c8c596aaf
1 changed files with 4 additions and 1 deletions
|
@ -173,7 +173,10 @@ exports.checkIfNeedsToChangeName = functions.https.onCall((request,response) =>
|
|||
})
|
||||
|
||||
exports.testCompleted = functions.https.onCall((request,response) => {
|
||||
if(request.uid === undefined || request.obj === undefined) return -1;
|
||||
if(request.uid === undefined || request.obj === undefined){
|
||||
console.error(`error saving result for ${request.uid} - missing input`);
|
||||
return -1;
|
||||
}
|
||||
try{
|
||||
|
||||
let obj = request.obj;
|
||||
|
|
Loading…
Add table
Reference in a new issue