fix: Gitlab webhooks fixed

This commit is contained in:
Andras Bacsai
2022-02-19 13:57:56 +01:00
parent 6c9ef34905
commit 64cd5b6e4b
4 changed files with 11 additions and 8 deletions

View File

@@ -21,8 +21,8 @@ export const get: RequestHandler = async (event) => {
const code = event.url.searchParams.get('code');
const state = event.url.searchParams.get('state');
try {
const { fqdn } = await db.listSettings();
const application = await db.getApplication({ id: state, teamId });
const { fqdn } = application;
const { appId, appSecret } = application.gitSource.gitlabApp;
const { htmlUrl } = application.gitSource;