Fix tests and clean up code a bit

This commit is contained in:
Deluan
2022-12-27 16:36:13 -05:00
committed by Deluan Quintão
parent 332900774d
commit 8f3387a894
11 changed files with 169 additions and 91 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import (
)
type mediafileArtworkReader struct {
cacheItem
cacheKey
a *artwork
mediafile model.MediaFile
album model.Album
@@ -29,8 +29,8 @@ func newMediafileArtworkReader(ctx context.Context, artwork *artwork, artID mode
mediafile: *mf,
album: *al,
}
a.cacheItem.artID = artID
a.cacheItem.lastUpdate = a.LastUpdated()
a.cacheKey.artID = artID
a.cacheKey.lastUpdate = a.LastUpdated()
return a, nil
}