Fix ChangeDetector to keep the dirMap from last scan

This commit is contained in:
Deluan
2020-01-17 22:41:10 -05:00
parent e55dfff485
commit ea9ed4a287
5 changed files with 32 additions and 27 deletions
+3
View File
@@ -118,6 +118,9 @@ func (r *mediaFileRepository) DeleteByPath(path string) error {
}
filtered = append(filtered, mf.ID)
}
if len(filtered) == 0 {
return nil
}
_, err = r.newQuery(o).Filter("id__in", filtered).Delete()
return err
}