refactor(flow): distribute createActionStep logic to different methods in model

This commit is contained in:
Ali BARIN
2024-10-31 10:19:26 +01:00
parent b9cd7c3983
commit d32820ee09
3 changed files with 97 additions and 15 deletions
@@ -6,7 +6,7 @@ export default async (request, response) => {
.findById(request.params.flowId)
.throwIfNotFound();
const createdActionStep = await flow.createActionStep(
const createdActionStep = await flow.createActionStepAfterStepId(
request.body.previousStepId
);