fix missing endConnection call
This commit is contained in:
parent
8eea3e005d
commit
80d52f525e
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue