mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-09-03 05:10:00 +03:00
Fix destructuring default object when no spotify config is present
This commit is contained in:
@@ -85,7 +85,7 @@ export default class SpotifySource {
|
||||
redirectUri = process.env.SPOTIFY_REDIRECT_URI,
|
||||
refreshToken = process.env.SPOTIFY_REFRESH_TOKEN,
|
||||
interval = 60,
|
||||
} = spotifyConfig;
|
||||
} = spotifyConfig || {};
|
||||
|
||||
if (interval < 15) {
|
||||
console.warn('Interval should be above 30 seconds...😬');
|
||||
|
||||
Reference in New Issue
Block a user