fix
This commit is contained in:
parent
794c416267
commit
0c3514d709
|
@ -287,16 +287,16 @@ func (u *FsUserModel) DebugAuthDelete(ctx context.Context, email string) (err er
|
|||
txUserMaterial := tx.Model(&FsUserMaterial{})
|
||||
txUserInfo := tx.Model(&FsUserInfo{})
|
||||
|
||||
// 继承guest_id的资源表
|
||||
err = txRes.
|
||||
Where("user_id = ?", user.Id).Delete(&FsResource{}).Error
|
||||
Where("user_id = ?", user.Id).
|
||||
Update("version", "0.0.0").Error
|
||||
if err != nil && err != gorm.ErrRecordNotFound {
|
||||
return err
|
||||
}
|
||||
|
||||
err = txUserMaterial.
|
||||
Where("user_id = ?", user.Id).
|
||||
Delete(&FsUserMaterial{}).Error
|
||||
Update("module", "clear").Error
|
||||
if err != nil && err != gorm.ErrRecordNotFound {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user