feat: update user storage in calibrating no matter if the actual storage match presisted

This commit is contained in:
HFO4 2022-06-09 16:11:10 +08:00
parent 21d2b817f4
commit 4859ea6ee5

View file

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