mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
add repositories and fixed services
This commit is contained in:
@@ -56,11 +56,11 @@ Requires "SECRET_CODE", "VERSION" (optional) from body.
|
||||
func (ac *ApiController) postMigrate(c *gin.Context) {
|
||||
migrateModel := c.MustGet("migrate")
|
||||
version := migrateModel.(middleware.SecretCodeModel).Version
|
||||
mr, er := ac.service.PostMigrate(c, version)
|
||||
er := ac.service.PostMigrate(c, version)
|
||||
|
||||
if er.Message != "" {
|
||||
c.JSON(er.StatusCode, er)
|
||||
if len(er) > 0 {
|
||||
c.JSON(500, er)
|
||||
} else {
|
||||
c.JSON(200, mr)
|
||||
c.JSON(200, nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user