Skip to content
Snippets Groups Projects
Commit 6eb63808 authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

Merge branch '1-requested-month-is-1' into 'dev'

Resolve "Requested month is -1"

Closes #1

See merge request web-et-numerique/llle_project/backoffice-server!6
parents ac916e11 563b9bfe
Branches
No related tags found
3 merge requests!14feat: addprices + subject managment,!11feat: Add partners issue info,!6Resolve "Requested month is -1"
Pipeline #16651 passed
...@@ -58,7 +58,7 @@ func (dh *DataHandler) GetCurrentMonthlyReport(w http.ResponseWriter, r *http.Re ...@@ -58,7 +58,7 @@ func (dh *DataHandler) GetCurrentMonthlyReport(w http.ResponseWriter, r *http.Re
year, month, _ := time.Now().Date() year, month, _ := time.Now().Date()
monthlyReport, err := dh.getMonthlyReport(year, int(month)-1) monthlyReport, err := dh.getMonthlyReport(year, int(month))
if err != nil { if err != nil {
w.WriteHeader(http.StatusNotFound) w.WriteHeader(http.StatusNotFound)
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment