fix: n8n double mount

version++
This commit is contained in:
Andras Bacsai
2023-07-26 10:38:36 +02:00
parent 2abd7bd7bb
commit 807a3c9d66
5 changed files with 5 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ import { scheduler } from './scheduler';
import type { ExecaChildProcess } from 'execa';
import { FastifyReply } from 'fastify';
export const version = '3.12.35';
export const version = '3.12.36';
export const isDev = process.env.NODE_ENV === 'development';
export const proxyPort = process.env.COOLIFY_PROXY_PORT;
export const proxySecurePort = process.env.COOLIFY_PROXY_SECURE_PORT;

View File

@@ -477,7 +477,7 @@ export async function saveServiceType(
const [volumeName, path] = volume.split(':');
if (!volumeName.startsWith('/')) {
const found = await prisma.servicePersistentStorage.findFirst({
where: { volumeName, serviceId: id }
where: { volumeName, serviceId: id, path }
});
if (!found) {
await prisma.servicePersistentStorage.create({