Fix missing song album details

This commit is contained in:
jeffvli
2022-10-28 13:00:31 -07:00
parent ca664d9430
commit ee8cc14e7e
+1 -33
View File
@@ -470,7 +470,7 @@ const albums = (options: {
songs(
item?.songs?.map((s: any) => ({
...s,
album: { images: item?.images },
album: { images: item?.images, ...relatedAlbum(item) },
})),
{
deviceId: user.deviceId,
@@ -487,38 +487,6 @@ const albums = (options: {
);
};
// const relatedServerCredentials = (items: ServerCredential[]) => {
// return (
// items.map((item) => {
// return {
// /* eslint-disable sort-keys-fix/sort-keys-fix */
// id: item.id,
// enabled: item.enabled,
// username: item.username,
// credential: item.credential,
// /* eslint-enable sort-keys-fix/sort-keys-fix */
// };
// }) || []
// );
// };
// const serverCredentials = (items: ServerCredential[]) => {
// return (
// items.map((item) => {
// return {
// /* eslint-disable sort-keys-fix/sort-keys-fix */
// id: item.id,
// username: item.username,
// enabled: item.enabled,
// credential: item.credential,
// createdAt: item.createdAt,
// updatedAt: item.updatedAt,
// /* eslint-enable sort-keys-fix/sort-keys-fix */
// };
// }) || []
// );
// };
const servers = (
items: (Server & {
serverFolders?: ServerFolder[];