From 906d181d1b6870d65d062ffb4cdc8bbca8e24cc8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 21 Feb 2023 13:15:17 +0100 Subject: [PATCH] debug --- apps/api/src/lib/services/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index 48a5dd85a..aa41d9d98 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -75,10 +75,10 @@ export async function startService(request: FastifyRequest, fa } const customVolumes = await prisma.servicePersistentStorage.findMany({ where: { serviceId: id } }) let volumes = new Set() + console.log(template.services[s].volumes, arm) if (arm && template.services[s]?.volumesArm?.length > 0) { template.services[s].volumesArm.forEach(v => volumes.add(v)) - } - if (!arm && template.services[s]?.volumes?.length > 0) { + } else { template.services[s].volumes.forEach(v => volumes.add(v)) } // Workaround: old plausible analytics service wrong volume id name