feat: Enhance ease of use of workflow editor

This commit is contained in:
Dries Augustyns
2026-04-24 11:56:43 +02:00
parent bdc9b30ef2
commit c910d20bb7
6 changed files with 709 additions and 918 deletions
+6 -1
View File
@@ -219,12 +219,17 @@ export class Workflows {
const auth = res.locals.auth;
const workflowId = req.params.id;
const stepId = req.params.stepId;
const splice = req.query.splice === 'true';
if (!workflowId || !stepId) {
return res.status(400).json({error: 'Workflow ID and Step ID are required'});
}
await WorkflowService.deleteStep(auth.projectId!, workflowId, stepId);
if (splice) {
await WorkflowService.spliceStep(auth.projectId!, workflowId, stepId);
} else {
await WorkflowService.deleteStep(auth.projectId!, workflowId, stepId);
}
return res.status(204).send();
}