admin: Fix API response
This commit is contained in:
parent
abe5ad61d4
commit
ab23ef8f71
@ -439,6 +439,7 @@ func getExercicesStats(c *gin.Context) {
|
||||
exercices, err := fic.GetDiscountedExercices()
|
||||
if err != nil {
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
ret := []exerciceStats{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user