diff --git a/internal/entity/album.go b/internal/entity/album.go index f6fd8f379..b3dcf667b 100644 --- a/internal/entity/album.go +++ b/internal/entity/album.go @@ -830,12 +830,12 @@ func (m *Album) RemovePhotos(UIDs []string) (removed PhotoAlbums) { removed = append(removed, entry) } } - + // Refresh updated timestamp. if err := UpdateAlbum(m.AlbumUID, Values{"updated_at": TimePointer()}); err != nil { log.Errorf("album: %s (update %s)", err.Error(), m) - } - + } + return removed } diff --git a/internal/entity/album_test.go b/internal/entity/album_test.go index c0a5f2fd2..bea973b46 100644 --- a/internal/entity/album_test.go +++ b/internal/entity/album_test.go @@ -194,7 +194,7 @@ func TestAddPhotoToAlbums(t *testing.T) { "Expected the UpdatedAt field of an album to be updated when"+ " new photos are added", ) - }, + }, ) t.Run("empty photo", func(t *testing.T) {