From bfa5fb6f164bc26169608c8ac4ef30bb84a50fda Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 11 Aug 2022 16:35:29 +0000 Subject: [PATCH] Update handlers.ts --- apps/api/src/routes/api/v1/destinations/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/routes/api/v1/destinations/handlers.ts b/apps/api/src/routes/api/v1/destinations/handlers.ts index 9910a2ba7..f310f8a61 100644 --- a/apps/api/src/routes/api/v1/destinations/handlers.ts +++ b/apps/api/src/routes/api/v1/destinations/handlers.ts @@ -60,7 +60,7 @@ export async function getDestination(request: FastifyRequest) { throw { status: 404, message: `Destination not found.` }; } const settings = await listSettings(); - let payload = { + const payload = { destination, settings }; @@ -222,7 +222,7 @@ export async function verifyRemoteDockerEngine(request: FastifyRequest, reply: F if (!coolifyNetwork) { await asyncExecShell(`DOCKER_HOST=${host} docker network create --attachable coolify-infra`); - + } await prisma.destinationDocker.update({ where: { id }, data: { remoteVerified: true } }) return reply.code(201).send()