Update handlers.ts

This commit is contained in:
Andras Bacsai 2022-08-11 16:35:29 +00:00
parent 168eec3fe0
commit bfa5fb6f16

View File

@ -60,7 +60,7 @@ export async function getDestination(request: FastifyRequest<OnlyId>) {
throw { status: 404, message: `Destination not found.` }; throw { status: 404, message: `Destination not found.` };
} }
const settings = await listSettings(); const settings = await listSettings();
let payload = { const payload = {
destination, destination,
settings settings
}; };
@ -222,7 +222,7 @@ export async function verifyRemoteDockerEngine(request: FastifyRequest, reply: F
if (!coolifyNetwork) { if (!coolifyNetwork) {
await asyncExecShell(`DOCKER_HOST=${host} docker network create --attachable coolify-infra`); await asyncExecShell(`DOCKER_HOST=${host} docker network create --attachable coolify-infra`);
}
await prisma.destinationDocker.update({ where: { id }, data: { remoteVerified: true } }) await prisma.destinationDocker.update({ where: { id }, data: { remoteVerified: true } })
return reply.code(201).send() return reply.code(201).send()