fix type errors

This commit is contained in:
jeffvli 2025-11-02 04:27:44 -08:00
parent bc42329d27
commit 8dbaec3943
8 changed files with 53 additions and 41 deletions

View file

@ -252,7 +252,10 @@ export const SubsonicController: ControllerEndpoint = {
};
},
getAlbumArtistListCount: (args) =>
SubsonicController.getAlbumArtistList(args).then((res) => res!.totalRecordCount!),
SubsonicController.getAlbumArtistList({
...args,
query: { ...args.query, startIndex: 0 },
}).then((res) => res!.totalRecordCount!),
getAlbumDetail: async (args) => {
const { apiClientProps, query } = args;
@ -602,7 +605,10 @@ export const SubsonicController: ControllerEndpoint = {
};
},
getArtistListCount: async (args) =>
SubsonicController.getArtistList(args).then((res) => res!.totalRecordCount!),
SubsonicController.getArtistList({
...args,
query: { ...args.query, startIndex: 0 },
}).then((res) => res!.totalRecordCount!),
getDownloadUrl: (args) => {
const { apiClientProps, query } = args;