This commit is contained in:
Thomas Amland
2021-05-09 13:01:53 +02:00
parent cdb4540d82
commit 1745495d2a
3 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -249,7 +249,7 @@ export class API {
}
}
async addFavourite(type: 'track' | 'album' | 'artist', id: string) {
async addFavourite(id: string, type: 'track' | 'album' | 'artist') {
const params = {
id: type === 'track' ? id : undefined,
albumId: type === 'album' ? id : undefined,
@@ -258,7 +258,7 @@ export class API {
await this.get('rest/star', params)
}
async removeFavourite(type: 'track' | 'album' | 'artist', id: string) {
async removeFavourite(id: string, type: 'track' | 'album' | 'artist') {
const params = {
id: type === 'track' ? id : undefined,
albumId: type === 'album' ? id : undefined,