From d13a814bb6ffa2f8acedb8c3843c290d5e8cee8d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 20 Jun 2025 03:13:41 -0600 Subject: [PATCH] Test fix list-orphans --- interactionHandlers/commands/manage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interactionHandlers/commands/manage.js b/interactionHandlers/commands/manage.js index a6a95a5..d9f3995 100644 --- a/interactionHandlers/commands/manage.js +++ b/interactionHandlers/commands/manage.js @@ -122,7 +122,7 @@ module.exports.execute = async (interaction) => { break; case "list-orphans": // List all orphaned extensions (extensions without a Discord user linked) await interaction.deferReply({ ephemeral: true }); - const [orphans] = await pool.query('SELECT id,description FROM asterisk.devices WHERE id NOT IN (SELECT extension FROM asterisk.discord_users)'); + const orphans = await pool.query('SELECT id,description FROM asterisk.devices WHERE id NOT IN (SELECT extension FROM asterisk.discord_users)'); if (orphans.length === 0) { await interaction.editReply({ content: 'No orphaned extensions found!', ephemeral: true }); return; @@ -133,7 +133,7 @@ module.exports.execute = async (interaction) => { ephemeral: true }); break; - + default: await interaction.reply({ content: 'Unknown subcommand!', ephemeral: true }); break;