fix: album release sort

This commit is contained in:
Cory Dransfeldt 2024-05-20 16:46:09 -07:00
parent 48d27c8ca9
commit ff288d4a6f
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -32,6 +32,7 @@ export default async function () {
url: album['release_link'],
genre: album['artists']['genre'],
mbid: album['artists']['mbid'],
timestamp: DateTime.fromISO(album['release_date']).toSeconds()
}
})
}).sort((a, b) => a.timestamp - b.timestamp)
}