Fix destructuring default object when no spotify config is present

This commit is contained in:
FoxxMD
2020-11-23 09:40:52 -05:00
parent 0efeeafb8c
commit 65a211df8b
+1 -1
View File
@@ -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...😬');