This commit is contained in:
Christopher Cookman 2025-09-15 06:22:47 -06:00
parent 2a344d443f
commit c569c2cc86

View file

@ -139,7 +139,7 @@ const execute = async (message) => {
const hubId = global.hubSettingsHandlers[message.author.id].hub; const hubId = global.hubSettingsHandlers[message.author.id].hub;
// Delete fileAuth // Delete fileAuth
message.channel.send("Deleting file authorizations..."); message.channel.send("Deleting file authorizations...");
await pool.query('DELETE FROM fileAuth WHERE productId IN (SELECT id FROM products WHERE hubId = ?)', [hubId]); await pool.query('DELETE FROM fileAuth WHERE product IN (SELECT id FROM products WHERE hubId = ?)', [hubId]);
// Delete files // Delete files
message.channel.send("Deleting product files..."); message.channel.send("Deleting product files...");
const files = await pool.query('SELECT filePath FROM products WHERE hubId = ?', [hubId]); const files = await pool.query('SELECT filePath FROM products WHERE hubId = ?', [hubId]);