diff --git a/apps/api/src/routes/webhooks/github/handlers.ts b/apps/api/src/routes/webhooks/github/handlers.ts index 5c9a5b63e..63a857502 100644 --- a/apps/api/src/routes/webhooks/github/handlers.ts +++ b/apps/api/src/routes/webhooks/github/handlers.ts @@ -166,7 +166,7 @@ export async function gitHubEvents(request: FastifyRequest): Promi if (applicationFound.destinationDockerId) { const isRunning = await checkContainer( { - dockerId: applicationFound.destinationDocker.engine, + dockerId: applicationFound.destinationDocker.id, container: applicationFound.id } ); @@ -209,7 +209,6 @@ export async function gitHubEvents(request: FastifyRequest): Promi } else if (pullmergeRequestAction === 'closed') { if (applicationFound.destinationDockerId) { const id = `${applicationFound.id}-${pullmergeRequestId}`; - const engine = applicationFound.destinationDocker.engine; await removeContainer({ id, dockerId: applicationFound.destinationDocker.id }); } return { diff --git a/apps/api/src/routes/webhooks/gitlab/handlers.ts b/apps/api/src/routes/webhooks/gitlab/handlers.ts index d6d1a43cd..7da5f137c 100644 --- a/apps/api/src/routes/webhooks/gitlab/handlers.ts +++ b/apps/api/src/routes/webhooks/gitlab/handlers.ts @@ -118,7 +118,7 @@ export async function gitLabEvents(request: FastifyRequest) { if (applicationFound.destinationDockerId) { const isRunning = await checkContainer( { - dockerId: applicationFound.destinationDocker.engine, + dockerId: applicationFound.destinationDocker.id, container: applicationFound.id } );