fix
continuous-integration/drone/push Build is failing Details

CI/CD
Thomas Chazot 1 year ago
parent 8527824948
commit b08be2bb45

@ -278,7 +278,7 @@ class DatabaseService {
const currentDay = new Date().getDay();
const firstDayOfWeek = new Date(new Date().setDate(new Date().getDate() - currentDay)).toISOString().slice(0, 10);
this.client.all(
this.client.query(
'SELECT pseudo, score FROM users INNER JOIN games ON users.idUser = games.idUser WHERE gameType = ? AND SUBSTR(playedDate, 1, 10) BETWEEN ? AND ? ORDER BY score ASC LIMIT 10',
["mastermind",
firstDayOfWeek,

Loading…
Cancel
Save