From 9921688e7dce3a99cbe3b8767d25debf34b1e09f Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 9 Jul 2020 20:01:16 +0100 Subject: [PATCH] fixed test completed not returning data --- functions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;