From 31e599533afede9f30ff8c19329024f42486c737 Mon Sep 17 00:00:00 2001 From: baz Date: Sun, 11 Feb 2024 21:05:07 +0000 Subject: [PATCH] Update beatlist to new helperfunctions --- commands/100-games/beatlist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/100-games/beatlist.js b/commands/100-games/beatlist.js index 3653396..c0f371b 100644 --- a/commands/100-games/beatlist.js +++ b/commands/100-games/beatlist.js @@ -1,5 +1,5 @@ const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); -const { getUserRegistration, getGames, checkGameStorageId } = require('../../databaseHelperFunctions.js'); +const { getUserRegistration, getBeatenGames, checkGameStorageId } = require('../../databaseHelperFunctions.js'); const { getGameJson } = require('../../igdbHelperFunctions.js'); module.exports = { @@ -20,7 +20,7 @@ module.exports = { const userDatabaseEntry = await getUserRegistration(user); if (!userDatabaseEntry) return interaction.followUp({ content: `Issue checking registration with "${user.username}".`, ephemeral: true }); - const beatenGamesDatabaseEntries = await getGames(userDatabaseEntry.id); + const beatenGamesDatabaseEntries = await getBeatenGames(userDatabaseEntry.id); if (!beatenGamesDatabaseEntries || beatenGamesDatabaseEntries.length == 0) return interaction.followUp({ content: 'No games found.', ephemeral: true }); let desc = '';