File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
backend/analytics_server/mhq/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ def run(self):
54
54
55
55
56
56
def get_custom_github_domain (org_id : str ) -> Optional [str ]:
57
- DEFAULT_DOMAIN = "https://api.github.com"
58
57
core_repo_service = CoreRepoService ()
59
58
integrations = core_repo_service .get_org_integrations_for_names (
60
59
org_id , [UserIdentityProvider .GITHUB .value ]
@@ -70,6 +69,8 @@ def get_custom_github_domain(org_id: str) -> Optional[str]:
70
69
LOG .warn (
71
70
f"Custom domain not found for intergration for org { org_id } and provider { UserIdentityProvider .GITHUB .value } "
72
71
)
73
- return DEFAULT_DOMAIN
72
+ # return nothing when custom domain is not found
73
+ # this is to prevent the default domain from being used
74
+ return
74
75
75
76
return github_domain
You can’t perform that action at this time.
0 commit comments