Commit graph

8 commits

Author SHA1 Message Date
fcc2f7d1b6 fix(api): db error on duplicate music library import
When the spotify crawler loop would import an artist multiple
times in parallel the first would succeed but the following queries
would throw with following exception:

    QueryFailedError: duplicate key value violates unique constraint "IDX_ARTIST_SPOTIFY_ID"

This error also could happen for the album or track.
2020-11-21 17:00:33 +01:00
9896ea31ff feat: introduce new report "Top Albums" 2020-11-15 02:43:23 +01:00
5fb8a99a56 refactor: fix import relative paths 2020-09-05 21:07:05 +02:00
f56218602e fix: remove debug logging 2020-07-11 19:48:18 +02:00
aecc82576a fix: improve top-artists response time
By calculating the necessary counts in the database, we avoid
unncessary joins and data transmissions.
2020-07-11 19:35:36 +02:00
a7c5c68540 feat(api): setup database migrations 2020-05-03 21:10:31 +02:00
d881a78757 chore(api): update dependencies 2020-05-03 21:10:31 +02:00
f2065d3f1f feat(api): fetch listens from spotify 2020-05-03 21:10:31 +02:00