Traitement commandes et ajout J/arrow + Fix login

This commit is contained in:
Zachary Guénot
2023-05-13 23:10:13 +02:00
parent 05d0b36cc8
commit 34b262a153
13 changed files with 319 additions and 144 deletions

View File

@@ -11,7 +11,7 @@ module.exports = getRewardData = (async () => {
database: process.env.MYSQL_DATABASE
})
// Retrieve the count of rewards claimed by each user, sorted by count
// Retrieve the count of rewards claimed by each viewer, sorted by count
let results = await connection.execute('SELECT * FROM rewards ORDER BY count DESC')
.then(async ([rows, fields]) => { return rows })
.catch(error => { console.error(error) })