Support playlists

This commit is contained in:
jeffvli
2023-12-08 08:06:56 -08:00
parent 18ec50b2a3
commit d347221be5
12 changed files with 298 additions and 191 deletions
+3 -2
View File
@@ -23,7 +23,6 @@ export const getPlaylistSongsById = async (args: {
id,
sortBy: SongListSort.ID,
sortOrder: SortOrder.ASC,
startIndex: 0,
...query,
};
@@ -139,7 +138,9 @@ export const getGenreSongsById = async (args: {
);
data.items.push(...res!.items);
data.totalRecordCount += res!.totalRecordCount;
if (data.totalRecordCount) {
data.totalRecordCount += res!.totalRecordCount || 0;
}
}
return data;