remove parameters from getArtists request. does nothing

This commit is contained in:
Thomas Amland 2020-07-27 14:41:18 +02:00
parent 5bca8cd69c
commit 9feae7ed44

View File

@ -70,13 +70,8 @@ export class API {
} }
} }
async getArtists(offset: any = 0, size: any = 400) { async getArtists() {
const params = { const data = await this.get("rest/getArtists");
type: "random",
offset,
size,
};
const data = await this.get("rest/getArtists", params);
return data.artists.index.flatMap((index: any) => index.artist.map((artist: any) => ({ return data.artists.index.flatMap((index: any) => index.artist.map((artist: any) => ({
id: artist.id, id: artist.id,
name: artist.name, name: artist.name,
@ -84,7 +79,6 @@ export class API {
}))); })));
} }
async getAlbums(sort: AlbumSort, size: number = 500) { async getAlbums(sort: AlbumSort, size: number = 500) {
const params = { const params = {
type: sort, type: sort,