fmt
This commit is contained in:
parent
478c98fb8d
commit
76f3357a0c
3 changed files with 22 additions and 22 deletions
|
|
@ -61,10 +61,10 @@ func userAddOrUpdate(c echo.Context) error {
|
|||
var exists bool
|
||||
_, err := models.GetUserByID(datUser.ID)
|
||||
if err != nil {
|
||||
if models.IsErrUserDoesNotExist(err) {
|
||||
exists = true
|
||||
} else {
|
||||
return c.JSON(http.StatusInternalServerError, models.Message{"Could not check if the user exists."})
|
||||
if models.IsErrUserDoesNotExist(err) {
|
||||
exists = true
|
||||
} else {
|
||||
return c.JSON(http.StatusInternalServerError, models.Message{"Could not check if the user exists."})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue