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

pull/1380/head
HFO4 3 years ago
parent 21d2b817f4
commit 4859ea6ee5

@ -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…
Cancel
Save