From 3d65e01a78d50dfa118fc1ef64bd440a38c80c37 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 15 Sep 2025 06:46:23 -0600 Subject: [PATCH] Test --- commands/setup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/setup.js b/commands/setup.js index 2f4db60..7deaa03 100644 --- a/commands/setup.js +++ b/commands/setup.js @@ -31,7 +31,8 @@ const execute = async (interaction) => { const shortDescription = "Our super cool product hub!"; const longDescription = "Welcome to our super cool product hub! We offer a variety of awesome products for you to explore and purchase. Enjoy your stay!"; const result = await pool.query('INSERT INTO hubs (ownerId, discordGuild, name, shortDescription, longDescription, secretKey) VALUES (?, ?, ?, ?, ?, ?)', [ownerId, guildId, name, shortDescription, longDescription, await crypto.randomBytes(64).toString('hex')]); - console.log(result) + const hub = await pool.query('SELECT * FROM hubs WHERE discordGuild = ?', [guildId]); + console.log(hub) if (result.affectedRows === 1) { return interaction.reply({ content: `Hub successfully created with ID: \`${result.insertId}\`. Get details via the /settings command!`, ephemeral: true }); } else {