fix: make connectionId optional step model

This commit is contained in:
Ali BARIN
2022-01-28 16:44:02 +01:00
committed by Ömer Faruk Aydın
parent 3925de13a7
commit da9ab8016b
3 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,6 @@ const createStepResolver = async (
key: input.key,
appKey: input.appKey,
type: 'action',
connectionId: input.connection?.id,
position: previousStep.position + 1,
});

View File

@@ -13,7 +13,7 @@ class Step extends Base {
key: string;
appKey: string;
type!: StepEnumType;
connectionId!: number;
connectionId: number;
position: number;
parameters: any;
@@ -29,7 +29,7 @@ class Step extends Base {
key: { type: ['string', null] },
appKey: { type: 'string', minLength: 1, maxLength: 255 },
type: { type: 'string', enum: ['action', 'trigger'] },
connectionId: { type: 'integer' },
connectionId: { type: ['integer', null] },
position: { type: 'integer' },
parameters: { type: ['object', null] },
},