This commit is contained in:
gazebo
2019-09-17 17:06:08 +08:00
parent 7b0d1d396f
commit d8f684f720
3 changed files with 3 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ func VoteFoodRecipe(ctx *jxcontext.Context, recipeID, voteType int) (err error)
UserID: userID,
}
if err = dao.GetEntity(db, recipeUser); err != nil {
if dao.IsNoRowsError(err) {
if !dao.IsNoRowsError(err) {
return err
}
}