Handle missing Spotify auth gracefully instead of returning errors
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m42s

Return nil/empty results when Spotify client is not authenticated,
preventing GraphQL errors from breaking the home page data query.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 17:02:11 +00:00
parent 29350af2e0
commit 7a737f6d10
5 changed files with 27 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ type Query {
rowingSessions: [Rowing!]!
messages: [Message!]!
spotifyListening: SpotifyPlaying
spotifyRecent: [SpotifyRecentItem!]!
spotifyRecent: [SpotifyRecentItem!]
giteaFeed: GiteaFeedItem
me: User
}