Add some logging
This commit is contained in:
parent
6e878d1f6a
commit
c419695c53
|
|
@ -15,7 +15,7 @@ const execute = async (interaction) => {
|
|||
if (!hub) return interaction.reply({ content: "Hub not found for this guild", ephemeral: true });
|
||||
|
||||
const productName = interaction.options.getString("name");
|
||||
console.log(`Hub is ${hub}`)
|
||||
console.log(`Hub is ${JSON.stringify(hub)}, productName is ${productName}`);
|
||||
const [product] = await pool.query('SELECT * FROM products WHERE UPPER(name) LIKE ? AND hubId = ?', [`%${productName.toUpperCase()}%`, hub.id]);
|
||||
if (!product) return interaction.reply({ content: "Product not found", ephemeral: true });
|
||||
// Proceed with creation
|
||||
|
|
|
|||
Loading…
Reference in a new issue