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

This commit is contained in:
Ali BARIN
2024-10-30 13:04:04 +00:00
parent b9cd7c3983
commit d32820ee09
3 changed files with 97 additions and 15 deletions

View File

@@ -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
);