fix: exposedPort checker
This commit is contained in:
parent
5e43d4f20d
commit
c46dc99224
@ -239,8 +239,8 @@ export async function saveApplication(request: FastifyRequest<SaveApplication>,
|
|||||||
exposePort = Number(exposePort);
|
exposePort = Number(exposePort);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { destinationDockerId } = await prisma.application.findUnique({ where: { id } })
|
const { destinationDocker: { id: dockerId, remoteIpAddress } } = await prisma.application.findUnique({ where: { id }, include: { destinationDocker: true } })
|
||||||
if (exposePort) await checkExposedPort({ id, exposePort, dockerId: destinationDockerId })
|
if (exposePort) await checkExposedPort({ id, exposePort, dockerId, remoteIpAddress })
|
||||||
if (denoOptions) denoOptions = denoOptions.trim();
|
if (denoOptions) denoOptions = denoOptions.trim();
|
||||||
const defaultConfiguration = await setDefaultConfiguration({
|
const defaultConfiguration = await setDefaultConfiguration({
|
||||||
buildPack,
|
buildPack,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user