admin: Fix errors reporting
This commit is contained in:
parent
1d4b79bf90
commit
8b50029f4d
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ func declareSyncExercicesRoutes(router *gin.RouterGroup) {
|
|||
|
||||
exceptions := sync.LoadExerciceException(sync.GlobalImporter, theme, exercice, nil)
|
||||
|
||||
c.JSON(http.StatusOK, sync.SyncExerciceFiles(sync.GlobalImporter, exercice, exceptions))
|
||||
c.JSON(http.StatusOK, flatifySyncErrors(sync.SyncExerciceFiles(sync.GlobalImporter, exercice, exceptions)))
|
||||
})
|
||||
apiSyncExercicesRoutes.POST("/fixurlid", func(c *gin.Context) {
|
||||
exercice := c.MustGet("exercice").(*fic.Exercice)
|
||||
|
|
Reference in a new issue