From 3a889960dbf514660e688c7e803270411e624b9e Mon Sep 17 00:00:00 2001 From: Glazelf <35176230+Glazelf@users.noreply.github.com> Date: Wed, 5 Jun 2024 21:38:46 +0200 Subject: [PATCH] Formatting --- commands/virtual_simulation/shinx.js | 2 +- database/dbServices/trophy.api.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/virtual_simulation/shinx.js b/commands/virtual_simulation/shinx.js index 05c854ed..c26b84d5 100644 --- a/commands/virtual_simulation/shinx.js +++ b/commands/virtual_simulation/shinx.js @@ -245,7 +245,7 @@ export default async (client, interaction, ephemeral) => { }); break; case "shiny": - res = await hasEventTrophy(master.id, 'shiny charm'); + res = await hasEventTrophy(master.id, 'Shiny Charm'); if (res) { const is_shiny = await switchShininessAndGet(master.id); returnString = is_shiny ? `Your Shinx is shiny now` : `Your Shinx is no longer shiny`; diff --git a/database/dbServices/trophy.api.js b/database/dbServices/trophy.api.js index 442656a4..f1a0fcc4 100644 --- a/database/dbServices/trophy.api.js +++ b/database/dbServices/trophy.api.js @@ -195,7 +195,6 @@ export async function addEventTrophy(user_id, trophy_id) { }; export async function hasEventTrophy(user_id, trophy_id) { - const { EventTrophy } = await userdataModel(userdata); let user = await getUser(user_id, ['user_id']); let trophy_id_t = trophy_id.toLowerCase();