mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix missing song album details
This commit is contained in:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user