Modif utils pour "require-all" + Fix refresh error
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const mysql = require('mysql2/promise')
|
||||
|
||||
module.exports = async function (user_id, user_name) {
|
||||
module.exports = rewardRedemption = (async (user_id, user_name) => {
|
||||
// Create a connection to the MySQL database
|
||||
const connection = await mysql.createConnection({
|
||||
host: process.env.MYSQL_HOST,
|
||||
@@ -27,4 +27,4 @@ module.exports = async function (user_id, user_name) {
|
||||
|
||||
// Terminate the connection to the database
|
||||
await connection.end()
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user