Skip to content

Commit

Permalink
fix:sql
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrie committed Mar 16, 2023
1 parent 770c18d commit d826e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/repository/bilibili_picture.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ func (impl *BilibiliPictureMysqlImpl) Verify(req idl.BilibiliPictureVerifyReq, d
}
updates := map[string]interface{}{
"feedback": req.FeedBack,
"verify": true,
"verify": 1,
}
conn = conn.Where("verify = ?", false).Updates(&updates)
conn = conn.Where("verify = ?", 0).Updates(&updates)
if conn.Error != nil {
return conn.Error
}
Expand Down

0 comments on commit d826e65

Please sign in to comment.