[Fix]: fetch latest token when existing token doesn't exist (#8000)

This commit is contained in:
Rohit Malhotra
2025-04-21 23:22:48 -04:00
committed by GitHub
parent bf9f2aa7a5
commit 986b90be0a
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class GitHubService(BaseGitService, GitService):
async def _get_github_headers(self) -> dict:
"""Retrieve the GH Token from settings store to construct the headers."""
if self.user_id and not self.token:
if not self.token:
self.token = await self.get_latest_token()
return {

View File

@@ -48,7 +48,7 @@ class GitLabService(BaseGitService, GitService):
"""
Retrieve the GitLab Token to construct the headers
"""
if self.user_id and not self.token:
if not self.token:
self.token = await self.get_latest_token()
return {