+3
-3
apps/api/src/nowplaying/nowplaying.service.ts
+3
-3
apps/api/src/nowplaying/nowplaying.service.ts
···
39
39
name: track.albumArtist,
40
40
createdAt: new Date().toISOString(),
41
41
pictureUrl: track.artistPicture,
42
-
tags: [],
42
+
tags: track.genres || [],
43
43
};
44
44
45
45
if (!Artist.validateRecord(record).success) {
···
133
133
: undefined,
134
134
createdAt: new Date().toISOString(),
135
135
spotifyLink: track.spotifyLink ? track.spotifyLink : undefined,
136
-
tags: [],
136
+
tags: track.genres || [],
137
137
};
138
138
139
139
if (!Song.validateRecord(record).success) {
···
189
189
? dayjs.unix(track.timestamp).toISOString()
190
190
: new Date().toISOString(),
191
191
spotifyLink: track.spotifyLink ? track.spotifyLink : undefined,
192
-
tags: [],
192
+
tags: track.genres || [],
193
193
};
194
194
195
195
if (!Scrobble.validateRecord(record).success) {