From ed657df69a831fa4804755a5ff2f01b829e169db Mon Sep 17 00:00:00 2001 From: Suvodip Date: Mon, 3 Feb 2025 16:20:05 +0530 Subject: [PATCH] replace userId to childId --- src/routes/api/getGameScore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/getGameScore.js b/src/routes/api/getGameScore.js index 5f8a37f..d11a1e1 100644 --- a/src/routes/api/getGameScore.js +++ b/src/routes/api/getGameScore.js @@ -19,7 +19,7 @@ async function main() { const { userId, gameName, gameID } = req.body; const gameData = await collection.findOne({ - userId: userId, + childId: userId, gameName: gameName, gameID: gameID }); -- 2.34.1