Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodrell2000 committed Apr 25, 2023
1 parent 0d6e349 commit 60143c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ OPENAI_API_KEY=XXXXXXXXXXX

# Discogs keys
DISCOGS_CONSUMER_KEY=XXXXXXXXXXX
DISCOGS_CONSUMER_SECRET=XXXXXXXXXXX
DISCOGS_CONSUMER_SECRET=XXXXXXXXXXX

# Spotify Auth
SPOTIFY_CLIENT_ID=xxxxxxxx
SPOTIFY_CLIENT_SECRET=xxxxxxxxx
2 changes: 1 addition & 1 deletion modules/mlModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const mlFunctions = () => {
}
} );

if ( release.data.results.length === 0 ) {
if ( release === undefined ) {
throw new Error( 'No release found.' );
}

Expand Down

0 comments on commit 60143c7

Please sign in to comment.