Refactor remaining queries/mutations for new controller

This commit is contained in:
jeffvli 2023-04-30 18:00:50 -07:00
parent 40aabd2217
commit bdd023fde3
15 changed files with 92 additions and 109 deletions

View file

@ -13,7 +13,7 @@ export const useAlbumArtistList = (args: QueryHookArgs<AlbumArtistListQuery>) =>
enabled: !!server?.id,
queryFn: ({ signal }) => {
if (!server) throw new Error('Server not found');
api.controller.getAlbumArtistList({ apiClientProps: { server, signal }, query });
return api.controller.getAlbumArtistList({ apiClientProps: { server, signal }, query });
},
queryKey: queryKeys.albumArtists.list(server?.id || '', query),
...options,