mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-06-03 14:57:15 +08:00
restructured cloud function
This commit is contained in:
parent
2c8c596aaf
commit
ed96e2f862
1 changed files with 4 additions and 4 deletions
|
@ -173,11 +173,11 @@ exports.checkIfNeedsToChangeName = functions.https.onCall((request,response) =>
|
|||
})
|
||||
|
||||
exports.testCompleted = functions.https.onCall((request,response) => {
|
||||
if(request.uid === undefined || request.obj === undefined){
|
||||
console.error(`error saving result for ${request.uid} - missing input`);
|
||||
return -1;
|
||||
}
|
||||
try{
|
||||
if(request.uid === undefined || request.obj === undefined){
|
||||
console.error(`error saving result for ${request.uid} - missing input`);
|
||||
return -1;
|
||||
}
|
||||
|
||||
let obj = request.obj;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue