fix missing endConnection call

This commit is contained in:
ShuriZma 2024-06-07 09:37:55 +02:00
parent 8eea3e005d
commit 80d52f525e
Signed by: ShuriZma
GPG Key ID: 8D289758EE9B8074
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ export default {
bot.endConection();
let fact = results[0];
await bot.getConnection().promise().execute('UPDATE facts SET counter = counter + 1 WHERE id = ?', [fact.id])
await bot.getConnection().promise().execute('UPDATE facts SET counter = counter + 1 WHERE id = ?', [fact.id]);
bot.endConection();
console.log('Sent beaver fact with id: ' + fact.id);
return await interaction.reply({