Add lastUpdated to coverArt ids. Helps with invalidating art cache client-side.

This commit is contained in:
Deluan
2023-02-08 13:49:05 -05:00
committed by Deluan Quintão
parent a3b8682d44
commit 806713719f
6 changed files with 105 additions and 52 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ var _ = Describe("encodeArtworkID", func() {
auth.TokenAuth = jwtauth.New("HS256", []byte("super secret"), nil)
})
It("returns a reversible string representation", func() {
id := model.NewArtworkID(model.KindArtistArtwork, "1234")
id := model.NewArtworkID(model.KindArtistArtwork, "1234", nil)
encoded := encodeArtworkID(id)
decoded, err := decodeArtworkID(encoded)
Expect(err).ToNot(HaveOccurred())