fix
This commit is contained in:
parent
101e589fdd
commit
53f9bbe0d5
|
@ -162,7 +162,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
|
|||
|
||||
err = UserTx.Create(user).Error
|
||||
|
||||
if err != nil {
|
||||
if err != nil && err != gorm.ErrRecordNotFound {
|
||||
logx.Error(err)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user