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
@@ -12,7 +12,7 @@ import (
)
type albumArtworkReader struct {
cacheItem
cacheKey
a *artwork
album model.Album
}
@@ -26,8 +26,8 @@ func newAlbumArtworkReader(ctx context.Context, artwork *artwork, artID model.Ar
a: artwork,
album: *al,
}
a.cacheItem.artID = artID
a.cacheItem.lastUpdate = al.UpdatedAt
a.cacheKey.artID = artID
a.cacheKey.lastUpdate = al.UpdatedAt
return a, nil
}