fix
This commit is contained in:
parent
d9de812728
commit
1e266c3a56
|
@ -55,8 +55,8 @@ func (l *UserResetPasswordLogic) UserResetPassword(req *types.RequestUserResetPa
|
||||||
}
|
}
|
||||||
|
|
||||||
err = l.svcCtx.AllModels.FsUser.Transaction(l.ctx, func(tx *gorm.DB) error {
|
err = l.svcCtx.AllModels.FsUser.Transaction(l.ctx, func(tx *gorm.DB) error {
|
||||||
user := &gmodel.FsUser{Id: int64(rt.UserId)}
|
user := &gmodel.FsUser{}
|
||||||
err := tx.Take(user).Error
|
err := tx.Where("id = ?", user.Id).Take(user).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user