mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Add related genre albums to album detail
This commit is contained in:
parent
5f5c3bbb11
commit
8338aaf18d
2 changed files with 53 additions and 6 deletions
|
|
@ -95,6 +95,13 @@ export const queryKeys: Record<
|
|||
|
||||
return [serverId, 'albums', 'list'] as const;
|
||||
},
|
||||
related: (serverId: string, id: string, query?: AlbumDetailQuery) => {
|
||||
if (query) {
|
||||
return [serverId, 'albums', id, 'related', query] as const;
|
||||
}
|
||||
|
||||
return [serverId, 'albums', id, 'related'] as const;
|
||||
},
|
||||
root: (serverId: string) => [serverId, 'albums'],
|
||||
serverRoot: (serverId: string) => [serverId, 'albums'],
|
||||
songs: (serverId: string, query: SongListQuery) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue