From 1aadda735da1e75fb390bad839da206ac950e9cb Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 21 Nov 2022 21:58:07 +0100 Subject: [PATCH] fix: webhook traefik --- apps/api/src/routes/webhooks/traefik/handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index d6a4b5172..18bdcfebf 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -395,7 +395,7 @@ export async function proxyConfiguration(request: FastifyRequest, remote } found = JSON.parse(JSON.stringify(found).replaceAll('$$id', id)); for (const oneService of Object.keys(found.services)) { - const isDomainConfiguration = found.services[oneService].proxy && found.services[oneService].proxy.filter(p => p.domain); + const isDomainConfiguration = found?.services[oneService]?.proxy?.filter(p => p.domain) ?? []; if (isDomainConfiguration.length > 0) { const { proxy } = found.services[oneService]; for (let configuration of proxy) {