fix commit url for api endpoint logging (#858)

This commit is contained in:
Echo 2026-01-26 15:21:14 -05:00 committed by GitHub
parent a72ea34a81
commit 356fb461e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ class PullRepoCommitsJob < ApplicationJob
process_commits(user, commits_data, repository)
elsif response.status.code == 401 # Unauthorized
Rails.logger.error "[PullRepoCommitsJob] Unauthorized (401) for User ##{user.id}. GitHub token expired/invalid. URL: #{commit_api_url}"
Rails.logger.error "[PullRepoCommitsJob] Unauthorized (401) for User ##{user.id}. GitHub token expired/invalid. URL: #{api_url}"
user.update!(github_access_token: nil)
Rails.logger.info "[PullRepoCommitsJob] Cleared invalid GitHub token for User ##{user.id}. User will need to re-authenticate."
elsif response.status.code == 404