fix: group folder remove file size relocate

pull/1882/head
WintBit 2 years ago
parent 9907b7092f
commit fc93f4c1f7

@ -284,8 +284,10 @@ func DeleteFiles(files []*File, uid uint) error {
return errors.New("file size is dirty")
}
if file.UserID > 0 {
size += file.Size
}
}
if uid > 0 {
if err := user.ChangeStorage(tx, "-", size); err != nil {

Loading…
Cancel
Save