This commit is contained in:
eson 2023-09-14 14:59:44 +08:00
parent 794c416267
commit 0c3514d709

View File

@ -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
}