diff --git a/internal/models/monthlyReport.go b/internal/models/monthlyReport.go index eb8816b95b15aae5e2929ee2cd8cda6ff0a0af24..4d19007dcce7091512e1c08414b019d40827f06a 100644 --- a/internal/models/monthlyReport.go +++ b/internal/models/monthlyReport.go @@ -58,7 +58,7 @@ func (dh *DataHandler) GetCurrentMonthlyReport(w http.ResponseWriter, r *http.Re year, month, _ := time.Now().Date() - monthlyReport, err := dh.getMonthlyReport(year, int(month)-1) + monthlyReport, err := dh.getMonthlyReport(year, int(month)) if err != nil { w.WriteHeader(http.StatusNotFound) return