Skip to content

Commit 9e6e16d

Browse files
committed
Fixed: the automatic removal of deployments from engines that were previously not reachable does not remove the engines from the deployment information when the removal succeeds
1 parent 3446c70 commit 9e6e16d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/management-system-v2/lib/executions/deployment-server-actions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { MapNestedType, Prettify, truthyFilter } from '../typescript-utils';
2828
import { addDeployment, updateDeployment, getProcessDeployments } from '../data/deployment';
2929
import { revalidateTag } from 'next/cache';
3030
import { updateTaskInfo } from '../tasks/server-actions';
31+
import { reach } from 'yup';
3132

3233
export async function deployProcess(
3334
definitionId: string,
@@ -366,9 +367,9 @@ export async function refetchDeployments() {
366367
fetchedVersion.machines = await asyncFilter(fetchedVersion.machines, async (m) => {
367368
try {
368369
await removeDeploymentFromMachines([m], d.version.processId);
369-
return true;
370-
} catch (err) {
371370
return false;
371+
} catch (err) {
372+
return true;
372373
}
373374
});
374375
}

0 commit comments

Comments
 (0)