feat: compute step parameters with prior steps

This commit is contained in:
Ali BARIN
2022-02-28 22:01:29 +01:00
parent cdc6168ff4
commit a506d1985f
8 changed files with 78 additions and 42 deletions

View File

@@ -1,7 +1,7 @@
import Step from '../../models/step';
import flowType, { flowInputType } from '../types/flow';
import RequestWithCurrentUser from '../../types/express/request-with-current-user';
import StepEnumType from '../../types/step-enum-type';
import { StepType } from '../../types/step';
type Params = {
input: {
@@ -21,7 +21,7 @@ const createFlowResolver = async (
await Step.query().insert({
flowId: flow.id,
type: StepEnumType.Trigger,
type: StepType.Trigger,
position: 1,
appKey,
});