Merge branch 'backend-refactor-rev' into audit-merge-three
Adapt the refactored web player to the new backend API (id path params, bulk track adds, flat list items, mix kind) and port AddAlbumToPlayList to the backend conventions.
This commit is contained in:
@@ -18,9 +18,5 @@ export const GET: RequestHandler = async ({ url, locals, fetch }) => {
|
||||
params: { query: { name, genre, pageNumber, pageSize } }
|
||||
});
|
||||
|
||||
return json(
|
||||
toPage(unwrapOrError(result, 'No se pudieron cargar las canciones.'), (item) =>
|
||||
toTrack(item.track)
|
||||
)
|
||||
);
|
||||
return json(toPage(unwrapOrError(result, 'No se pudieron cargar las canciones.'), toTrack));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user