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