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()
|
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{}
|
||||||
|
Loading…
Reference in New Issue
Block a user