From 495e0772e81d16aaf62eac4d663496f49897b840 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Wed, 14 Aug 2024 11:02:02 +0700 Subject: [PATCH] fix(dashmate): the reset platform command doesn't remove data --- packages/dashmate/src/listr/tasks/resetNodeTaskFactory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashmate/src/listr/tasks/resetNodeTaskFactory.js b/packages/dashmate/src/listr/tasks/resetNodeTaskFactory.js index 098ac05b8e0..374c7f37043 100644 --- a/packages/dashmate/src/listr/tasks/resetNodeTaskFactory.js +++ b/packages/dashmate/src/listr/tasks/resetNodeTaskFactory.js @@ -77,7 +77,7 @@ export default function resetNodeTaskFactory( await dockerCompose.rm(config, { profiles: ['platform'] }); // Remove volumes - if (ctx.keepData) { + if (!ctx.keepData) { const { COMPOSE_PROJECT_NAME: composeProjectName } = generateEnvs(config); const projectVolumeNames = await dockerCompose.getVolumeNames(