admin: Fix API response

This commit is contained in:
nemunaire 2023-06-14 18:46:30 +02:00
parent abe5ad61d4
commit ab23ef8f71

View File

@ -439,6 +439,7 @@ func getExercicesStats(c *gin.Context) {
exercices, err := fic.GetDiscountedExercices() exercices, err := fic.GetDiscountedExercices()
if err != nil { if err != nil {
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()}) c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
return
} }
ret := []exerciceStats{} ret := []exerciceStats{}