chore: build
Backend - Build & Lint / build (push) Canceled after 29m7s

This commit is contained in:
Xor290
2026-08-18 20:02:59 +02:00
parent ef7166c2dd
commit e82ad3ae4d
7 changed files with 641 additions and 17 deletions
+2 -2
View File
@@ -70,10 +70,10 @@ func GetAdminStatsByMonth(c *gin.Context) {
}
monthStart = time.Date(monthStart.Year(), monthStart.Month(), 1, 0, 0, 0, 0, monthStart.Location())
resetCmd := database.ReadResetAt("stats_reset_commandes_at")
filters := database.LoadAdminStatsFilters()
var rows []db.DailyMonthStatRow
if err := database.StatsByDayForMonth(&rows, monthStart, resetCmd); err != nil {
if err := database.StatsByDayForMonth(&rows, monthStart, filters.ResetCommandes, filters.ResetRevenus); err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": fmt.Sprintf("Erreur lors de la récupération des statistiques mensuelles: %s", err)})
return
}