From 76ba338b455a450da10fab47b24dd6dd3c945f09 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 1 Mar 2022 11:17:34 +0100 Subject: [PATCH] fix --- src/lib/database/applications.ts | 1 - src/routes/webhooks/github/events.ts | 3 +-- src/routes/webhooks/gitlab/events.ts | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/database/applications.ts b/src/lib/database/applications.ts index b2d7ceacd..79ee38876 100644 --- a/src/lib/database/applications.ts +++ b/src/lib/database/applications.ts @@ -1,5 +1,4 @@ import { decrypt, encrypt } from '$lib/crypto'; -import { removeProxyConfiguration } from '$lib/haproxy'; import { asyncExecShell, getEngine } from '$lib/common'; import { getDomain, removeDestinationDocker } from '$lib/common'; diff --git a/src/routes/webhooks/github/events.ts b/src/routes/webhooks/github/events.ts index 1be335871..91ac4d301 100644 --- a/src/routes/webhooks/github/events.ts +++ b/src/routes/webhooks/github/events.ts @@ -4,7 +4,7 @@ import type { RequestHandler } from '@sveltejs/kit'; import cuid from 'cuid'; import crypto from 'crypto'; import { buildQueue } from '$lib/queues'; -import { checkContainer, removeProxyConfiguration } from '$lib/haproxy'; +import { checkContainer } from '$lib/haproxy'; import { dev } from '$app/env'; export const options: RequestHandler = async () => { @@ -154,7 +154,6 @@ export const post: RequestHandler = async (event) => { const engine = applicationFound.destinationDocker.engine; await removeDestinationDocker({ id, engine }); - await removeProxyConfiguration(fqdn); } return { status: 200, diff --git a/src/routes/webhooks/gitlab/events.ts b/src/routes/webhooks/gitlab/events.ts index b1af61fd4..b87e59395 100644 --- a/src/routes/webhooks/gitlab/events.ts +++ b/src/routes/webhooks/gitlab/events.ts @@ -1,5 +1,5 @@ import { getTeam, getUserDetails, getDomain, removeDestinationDocker } from '$lib/common'; -import { checkContainer, removeProxyConfiguration } from '$lib/haproxy'; +import { checkContainer } from '$lib/haproxy'; import * as db from '$lib/database'; import type { RequestHandler } from '@sveltejs/kit'; import cuid from 'cuid'; @@ -151,7 +151,6 @@ export const post: RequestHandler = async (event) => { const engine = applicationFound.destinationDocker.engine; await removeDestinationDocker({ id, engine }); - await removeProxyConfiguration(fqdn); } return {