A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz

fix: specify type for song record in putSongRecord function

+2 -1
+2 -1
apps/api/src/nowplaying/nowplaying.service.ts
··· 107 107 ): Promise<string | null> { 108 108 const rkey = TID.nextStr(); 109 109 110 - const record = { 110 + const record: Song.Record = { 111 111 $type: "app.rocksky.song", 112 112 title: track.title, 113 113 artist: track.artist, ··· 129 129 createdAt: new Date().toISOString(), 130 130 spotifyLink: track.spotifyLink ? track.spotifyLink : undefined, 131 131 tags: track.genres || [], 132 + mbid: track.mbId, 132 133 }; 133 134 134 135 if (!Song.validateRecord(record).success) {