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

fix: update scrobble message to replace "sha_256" with "sha256" and improve logging

+10 -2
+10 -2
apps/api/src/nowplaying/nowplaying.service.ts
··· 432 xata_createdat: artist_album.createdAt.toISOString(), 433 xata_updatedat: artist_album.updatedAt.toISOString(), 434 }, 435 - }) 436 ); 437 438 ctx.nc.publish( 439 "rocksky.scrobble", ··· 487 }) 488 ); 489 490 - ctx.nc.publish("rocksky.track", Buffer.from(trackMessage)); 491 } 492 493 export async function scrobbleTrack(
··· 432 xata_createdat: artist_album.createdAt.toISOString(), 433 xata_updatedat: artist_album.updatedAt.toISOString(), 434 }, 435 + }), 436 + null, 437 + 2 438 ); 439 + 440 + console.log("Publishing scrobble to NATS"); 441 + console.log(message.replaceAll("sha_256", "sha256")); 442 443 ctx.nc.publish( 444 "rocksky.scrobble", ··· 492 }) 493 ); 494 495 + ctx.nc.publish( 496 + "rocksky.track", 497 + Buffer.from(trackMessage.replaceAll("sha_256", "sha256")) 498 + ); 499 } 500 501 export async function scrobbleTrack(