Patch self-hosted gitlab integration

This commit is contained in:
Tuan Dang
2023-09-22 15:19:26 +01:00
parent 5b6c2e05f2
commit 32bec03adf
3 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import { IntegrationAuthMetadata } from "../models/integrationAuth/types";
interface Update {
workspace: string;
integration: string;
url?: string;
teamId?: string;
accountId?: string;
metadata?: IntegrationAuthMetadata
@@ -63,6 +64,10 @@ export const handleOAuthExchangeHelper = async ({
workspace: workspaceId,
integration
};
if (res.url) {
update.url = res.url;
}
switch (integration) {
case INTEGRATION_VERCEL:

View File

@@ -423,6 +423,7 @@ const exchangeCodeGitlab = async ({
accessToken: res.access_token,
refreshToken: res.refresh_token,
accessExpiresAt,
url
};
};