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

fix match condition

+4 -3
+4 -3
rockskyapi/rocksky-auth/src/xrpc/app/rocksky/spotify/getCurrentlyPlaying.ts
··· 139 139 }; 140 140 141 141 const withUriAndLikes = ([track, ctx, user]: [any, Context, SelectUser]) => { 142 - console.log(">> track"); 143 - console.log(track); 144 142 return Effect.tryPromise({ 145 143 try: async () => { 146 144 const sha256 = createHash("sha256") ··· 167 165 .execute() 168 166 .then((results) => 169 167 Match.value(track).pipe( 170 - Match.when({}, () => ({})), 168 + Match.when( 169 + (t) => Object.keys(t).length > 0, 170 + () => ({}) 171 + ), 171 172 Match.orElse(() => ({ 172 173 ...track, 173 174 songUri: record?.uri,