mirror of https://github.com/cloudreve/Cloudreve
feat: update user storage in calibrating no matter if the actual storage match presisted
parent
21d2b817f4
commit
4859ea6ee5
|
@ -27,7 +27,7 @@ func (script UserStorageCalibration) Run(ctx context.Context) {
|
||||||
if user.Storage != total.Total {
|
if user.Storage != total.Total {
|
||||||
util.Log().Info("将用户 [%s] 的容量由 %d 校准为 %d", user.Email,
|
util.Log().Info("将用户 [%s] 的容量由 %d 校准为 %d", user.Email,
|
||||||
user.Storage, total.Total)
|
user.Storage, total.Total)
|
||||||
model.DB.Model(&user).Update("storage", total.Total)
|
|
||||||
}
|
}
|
||||||
|
model.DB.Model(&user).Update("storage", total.Total)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue