1
0
This commit is contained in:
konrad
2018-08-30 19:14:16 +02:00
committed by kolaente
parent 478c98fb8d
commit 76f3357a0c
3 changed files with 22 additions and 22 deletions

View File

@ -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."})
}
}