A decentralized music tracking and discovery platform built on AT Protocol 🎵
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: extend timestamp range in scrobbleTrack to 60 seconds for improved accuracy

+2 -2
+2 -2
apps/api/src/nowplaying/nowplaying.service.ts
··· 523 523 eq(users.did, userDid), 524 524 eq(tracks.title, track.title), 525 525 eq(tracks.artist, track.artist), 526 - gte(scrobbles.timestamp, scrobbleTime.subtract(5, "seconds").toDate()), 527 - lte(scrobbles.timestamp, scrobbleTime.add(5, "seconds").toDate()) 526 + gte(scrobbles.timestamp, scrobbleTime.subtract(60, "seconds").toDate()), 527 + lte(scrobbles.timestamp, scrobbleTime.add(60, "seconds").toDate()) 528 528 ) 529 529 ) 530 530 .limit(1)