fix: 修复取消点赞报错的问题

This commit is contained in:
lcgash@163.com 2023-02-10 15:57:30 +08:00 committed by LinkinStars
parent 49eb28cc1a
commit 1a5cdba578
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func (ur *UserRankRepo) checkUserMinRank(ctx context.Context, session *xorm.Sess
isReachStandard bool, err error,
) {
bean := &entity.User{ID: userID}
_, err = session.Select("rank").Get(bean)
_, err = session.Select("`rank`").Get(bean)
if err != nil {
return false, errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
}