diff --git a/functions/index.js b/functions/index.js index b30d13e50..fbaf16872 100644 --- a/functions/index.js +++ b/functions/index.js @@ -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;