fix: webhooks

This commit is contained in:
Andras Bacsai committed 2022-07-25 11:32:44 +00:00
1 parent 5f3aae066a
commit 101694c998
2 files changed
+2 -3

No files matched your search

@@ -166,7 +166,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): 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<GitHubEvents>): 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 {
@@ -118,7 +118,7 @@ export async function gitLabEvents(request: FastifyRequest<GitLabEvents>) {
if (applicationFound.destinationDockerId) {
const isRunning = await checkContainer(
{
dockerId: applicationFound.destinationDocker.engine,
dockerId: applicationFound.destinationDocker.id,
container: applicationFound.id
}
);