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.

log collections script errors

+13
+13
apps/api/src/scripts/collections.ts
··· 205 205 scrobble.uri, 206 206 )} — skipping publish`, 207 207 ); 208 + await ctx.db 209 + .insert(schema.scrobbles) 210 + .values({ 211 + albumId: album.id, 212 + trackId: track.id, 213 + artistId: artist.id, 214 + uri: scrobble.uri, 215 + userId: user.id, 216 + timestamp: new Date(value.createdAt), 217 + createdAt: new Date(value.createdAt), 218 + }) 219 + .returning() 220 + .execute(); 208 221 return; 209 222 } 210 223 await publishScrobble(ctx, newScrobble.id);