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

fix getCurrentlyPlaying (spotify)

+3 -5
+3 -5
rockskyapi/rocksky-auth/src/xrpc/app/rocksky/spotify/getCurrentlyPlaying.ts
··· 84 84 return Effect.tryPromise({ 85 85 try: async () => 86 86 ctx.db 87 - .select({ 88 - accounts: tables.spotifyAccounts, 89 - }) 87 + .select() 90 88 .from(tables.spotifyAccounts) 91 89 .leftJoin( 92 90 tables.users, ··· 99 97 ) 100 98 ) 101 99 .execute() 102 - .then(([{ accounts }]) => ({ 103 - spotifyAccount: accounts, 100 + .then(([results]) => ({ 101 + spotifyAccount: results.spotify_accounts, 104 102 user, 105 103 ctx, 106 104 params,