fix: Id of service container

This commit is contained in:
Andras Bacsai 2022-04-14 23:11:24 +02:00
parent fd4bbe17f0
commit 260a47a366

View File

@ -30,8 +30,8 @@ export default async function (): Promise<void | {
include: { service: { include: { destinationDocker: true } } }
});
for (const ftp of wordpressWithFtp) {
const { service, ftpPublicPort, id } = ftp;
const { destinationDockerId, destinationDocker } = service;
const { service, ftpPublicPort } = ftp;
const { destinationDockerId, destinationDocker, id } = service;
if (destinationDockerId) {
await startTcpProxy(destinationDocker, `${id}-ftp`, ftpPublicPort, 22);
}