fix pb api
continuous-integration/drone/push Build is passing Details

CI/CD
Thomas Chazot 1 year ago
parent 5b7f57b1aa
commit bfc2f377cc

@ -20,7 +20,7 @@ class SessionController {
const [dailyMastermindStats, fields] = await db.getDailyMastermindStats();
console.log(dailyMastermindStats)
res.status(200).json({ tab : dailyMastermindStats });
res.status(200).json({ tab : [dailyMastermindStats] });
}
catch(error){
console.error(error);
@ -122,7 +122,7 @@ class SessionController {
const [weeklyMastermindStats, fields] = await db.getWeeklyMastermindStats();
console.log(weeklyMastermindStats)
res.status(200).json({ tab : weeklyMastermindStats });
res.status(200).json({ tab : [weeklyMastermindStats] });
}
catch(error){
console.error(error);

Loading…
Cancel
Save