parent
448b008884
commit
fa9c12277b
|
@ -46,7 +46,7 @@ module.exports = {
|
|||
|
||||
const gameDatabaseEntry = await checkGameStorage(game);
|
||||
|
||||
if (!(await createBeatenGameEntry(userDatabaseEntry, gameDatabaseEntry))) return interaction.editReply({ content: `${game.name} already beaten.`, ephemeral: true });
|
||||
await createBeatenGameEntry(userDatabaseEntry, gameDatabaseEntry);
|
||||
|
||||
const beatNum = await getBeatenGameCount(userDatabaseEntry);
|
||||
const planNum = await getPlanningGameCount(userDatabaseEntry);
|
||||
|
|
|
@ -40,7 +40,7 @@ module.exports = {
|
|||
const game = res[0];
|
||||
const gameDatabaseEntry = await checkGameStorage(game);
|
||||
|
||||
if (!(await createPlanningGameEntry(userDatabaseEntry, gameDatabaseEntry))) return interaction.editReply({ content: `${game.name} already planned.`, ephemeral: true });
|
||||
await createPlanningGameEntry(userDatabaseEntry, gameDatabaseEntry);
|
||||
|
||||
const beatNum = await getBeatenGameCount(userDatabaseEntry);
|
||||
const planNum = await getPlanningGameCount(userDatabaseEntry);
|
||||
|
|
|
@ -43,7 +43,7 @@ module.exports = {
|
|||
|
||||
const gameDatabaseEntry = await checkGameStorage(game);
|
||||
|
||||
if (!(await createPlayingGameEntry(userDatabaseEntry, gameDatabaseEntry))) return interaction.editReply({ content: `${game.name} already currently being played.`, ephemeral: true });
|
||||
await createPlayingGameEntry(userDatabaseEntry, gameDatabaseEntry);
|
||||
|
||||
const beatNum = await getBeatenGameCount(userDatabaseEntry);
|
||||
const planNum = await getPlanningGameCount(userDatabaseEntry);
|
||||
|
|
Loading…
Reference in New Issue