Another big refactor: Back to a single folder for persistence implementation

This commit is contained in:
Deluan
2020-01-14 18:23:29 -05:00
parent 08e096c569
commit a99c3a8af3
27 changed files with 177 additions and 171 deletions
+3 -3
View File
@@ -134,13 +134,13 @@ func (i *Importer) importLibrary() (err error) {
i.importArtistIndex()
log.Debug("Purging old data")
if _, err := i.mfRepo.PurgeInactive(mfs); err != nil {
if err := i.mfRepo.PurgeInactive(mfs); err != nil {
log.Error(err)
}
if _, err := i.albumRepo.PurgeInactive(als); err != nil {
if err := i.albumRepo.PurgeInactive(als); err != nil {
log.Error(err)
}
if _, err := i.artistRepo.PurgeInactive(ars); err != nil {
if err := i.artistRepo.PurgeInactive(ars); err != nil {
log.Error("Deleting inactive artists", err)
}
if _, err := i.plsRepo.PurgeInactive(pls); err != nil {