Update handlers.ts

This commit is contained in:
Andras Bacsai 2022-08-30 16:12:01 +02:00 committed by GitHub
parent b4cc0fb0f3
commit fd15e5182d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -451,7 +451,7 @@ export async function deployApplication(request: FastifyRequest<DeployApplicatio
applicationId: id,
sourceBranch: branch,
branch: application.branch,
pullmergeRequestId: pullmergeRequestId.toString(),
pullmergeRequestId: pullmergeRequestId?.toString(),
forceRebuild,
destinationDockerId: application.destinationDocker?.id,
gitSourceId: application.gitSource?.id,
@ -937,4 +937,4 @@ export async function cancelDeployment(request: FastifyRequest<CancelDeployment>
} catch ({ status, message }) {
return errorHandler({ status, message })
}
}
}