Update deleteBeatenGameid function for new deletegame command functionality
This commit is contained in:
parent
311a463d46
commit
9212469616
|
@ -101,7 +101,7 @@ async function getBeatenGameCount(user) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deleteBeatenGameId(id, 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) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue