Update deleteBeatenGameid function for new deletegame command functionality

This commit is contained in:
baz 2023-12-30 01:56:30 +00:00
parent 311a463d46
commit 9212469616
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});