recurring loading working now

This commit is contained in:
2025-06-22 11:04:32 +02:00
parent 5eaad428ff
commit 98b28bcd4f
9 changed files with 70 additions and 84 deletions

View File

@@ -45,6 +45,7 @@ class SpotifyController < ApplicationController
begin
token_response = SpotifyClient.new(current_user).token_response_from_code(code)
Login.find_or_create_for_response!(current_user, token_response)
LoadUserActivitiesJob.perform_later(current_user)
true
rescue RestClient::Exception, JSON::ParserError => e
Rails.logger.error("Spotify callback error: #{e.class} - #{e.message}")