mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Fix missing song album details
This commit is contained in:
@@ -470,7 +470,7 @@ const albums = (options: {
|
|||||||
songs(
|
songs(
|
||||||
item?.songs?.map((s: any) => ({
|
item?.songs?.map((s: any) => ({
|
||||||
...s,
|
...s,
|
||||||
album: { images: item?.images },
|
album: { images: item?.images, ...relatedAlbum(item) },
|
||||||
})),
|
})),
|
||||||
{
|
{
|
||||||
deviceId: user.deviceId,
|
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 = (
|
const servers = (
|
||||||
items: (Server & {
|
items: (Server & {
|
||||||
serverFolders?: ServerFolder[];
|
serverFolders?: ServerFolder[];
|
||||||
|
|||||||
Reference in New Issue
Block a user