mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
fix(api): exception after refreshing spotify access token
This commit is contained in:
parent
59307a8a2e
commit
49b31e8e62
1 changed files with 10 additions and 0 deletions
|
|
@ -53,7 +53,17 @@ export class SpotifyService {
|
||||||
accessToken,
|
accessToken,
|
||||||
});
|
});
|
||||||
await this.processUser(user, false);
|
await this.processUser(user, false);
|
||||||
|
} else {
|
||||||
|
// TODO sent to sentry
|
||||||
|
console.error(
|
||||||
|
"Unexpected error while fetching recently played tracks",
|
||||||
|
err
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Makes no sense to keep processing the (inexistant) data but if we throw
|
||||||
|
// the error the fetch loop will not process other users.
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playHistory.length === 0) {
|
if (playHistory.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue