mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
fix commit url for api endpoint logging (#858)
This commit is contained in:
parent
a72ea34a81
commit
356fb461e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue