fix: token
This commit is contained in:
parent
117a466745
commit
dbf2700462
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ const aggregateData = async (data, groupByField, groupByType) => {
|
||||||
const buildRecents = async (data) => {
|
const buildRecents = async (data) => {
|
||||||
return data.map(listen => ({
|
return data.map(listen => ({
|
||||||
title: listen['track_name'],
|
title: listen['track_name'],
|
||||||
artist: listen['artist_name']
|
artist: listen['artist_name'],
|
||||||
url: `/music/artists/${sanitizeMediaString(listen['artist_name'])}-${sanitizeMediaString(parseCountryField(listen['artists']['country']))}`,
|
url: `/music/artists/${sanitizeMediaString(listen['artist_name'])}-${sanitizeMediaString(parseCountryField(listen['artists']['country']))}`,
|
||||||
timestamp: listen['listened_at'],
|
timestamp: listen['listened_at'],
|
||||||
image: listen['albums']?.['image'] || ''
|
image: listen['albums']?.['image'] || ''
|
||||||
|
|
Reference in a new issue