chore: debug
This commit is contained in:
parent
0c5ada745e
commit
1b7a607b56
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ export default async (request) => {
|
|||
timestamp,
|
||||
genre: artistsMap[artistSanitizedKey(artist)]?.['genre'] || ''
|
||||
}
|
||||
|
||||
console.log(artistsMap[artistSanitizedKey(artist)])
|
||||
console.log(artistsMap[artistSanitizedKey(artist)]?.['genre'])
|
||||
console.log(artistsMap[artistSanitizedKey(artist)]?.['mbid'])
|
||||
|
||||
const scrobbleData = await scrobbles.get(`${weekKey()}`, { type: 'json'})
|
||||
const windowData = await scrobbles.get('window', { type: 'json'})
|
||||
const artistUrl = (artistsMap[artistSanitizedKey(artist)]?.['mbid'] && artistsMap[artistSanitizedKey(artist)]?.['mbid'] !== '') ? `http://musicbrainz.org/artist/${artistsMap[artistSanitizedKey(artist)]?.['mbid']}` : `https://musicbrainz.org/search?query=${artist.replace(
|
||||
|
|
Reference in a new issue