mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 02:14:23 +02:00
fix Navidrome normalized types for userFavorite, userRating
This commit is contained in:
@@ -322,7 +322,7 @@ const normalizeAlbum = (
|
|||||||
songs: item.songs ? item.songs.map((song) => normalizeSong(song, server)) : undefined,
|
songs: item.songs ? item.songs.map((song) => normalizeSong(song, server)) : undefined,
|
||||||
tags: item.tags || null,
|
tags: item.tags || null,
|
||||||
updatedAt: item.updatedAt,
|
updatedAt: item.updatedAt,
|
||||||
userFavorite: item.starred,
|
userFavorite: item.starred || false,
|
||||||
userRating: item.rating || null,
|
userRating: item.rating || null,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -389,8 +389,8 @@ const normalizeAlbumArtist = (
|
|||||||
name: artist.name,
|
name: artist.name,
|
||||||
})) || null,
|
})) || null,
|
||||||
songCount,
|
songCount,
|
||||||
userFavorite: item.starred,
|
userFavorite: item.starred || false,
|
||||||
userRating: item.rating,
|
userRating: item.rating || null,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user