refactor(flow): distribute createActionStep logic to different methods in model
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user