feat: update user storage in calibrating no matter if the actual storage match presisted
This commit is contained in:
parent
21d2b817f4
commit
4859ea6ee5
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ func (script UserStorageCalibration) Run(ctx context.Context) {
|
|||
if user.Storage != total.Total {
|
||||
util.Log().Info("将用户 [%s] 的容量由 %d 校准为 %d", user.Email,
|
||||
user.Storage, total.Total)
|
||||
model.DB.Model(&user).Update("storage", total.Total)
|
||||
}
|
||||
model.DB.Model(&user).Update("storage", total.Total)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue