From 921246961615a06488d6022cb806dd155572c638 Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 30 Dec 2023 01:56:30 +0000 Subject: [PATCH] Update deleteBeatenGameid function for new deletegame command functionality --- databaseHelperFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databaseHelperFunctions.js b/databaseHelperFunctions.js index 75cc403..9d86580 100644 --- a/databaseHelperFunctions.js +++ b/databaseHelperFunctions.js @@ -101,7 +101,7 @@ async function getBeatenGameCount(user) { } async function deleteBeatenGameId(id, user) { - const bg = await BeatenGames.findOne({ where: { id: id, userId: user.id } }) + const bg = await BeatenGames.findOne({ where: { gameId: id, userId: user.id } }) .catch((err) => { console.log(err); });