fix: Adjust null flag for step model fields
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
70bb79ab6c
commit
003213d223
@@ -2,7 +2,7 @@
|
|||||||
"name": "@automatisch/root",
|
"name": "@automatisch/root",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "lerna run --stream --scope=@*/{web,backend,docs} dev",
|
"start": "lerna run --stream --parallel --scope=@*/{web,docs,backend} dev",
|
||||||
"start:web": "lerna run --stream --scope=@*/web dev",
|
"start:web": "lerna run --stream --scope=@*/web dev",
|
||||||
"start:backend": "lerna run --stream --scope=@*/backend dev",
|
"start:backend": "lerna run --stream --scope=@*/backend dev",
|
||||||
"lint": "lerna run --no-bail --stream --scope=@*/{web,backend,cli} lint",
|
"lint": "lerna run --no-bail --stream --scope=@*/{web,backend,cli} lint",
|
||||||
|
@@ -44,6 +44,7 @@ const createStepResolver = async (
|
|||||||
appKey: input.appKey,
|
appKey: input.appKey,
|
||||||
type: StepEnumType.Action,
|
type: StepEnumType.Action,
|
||||||
position: previousStep.position + 1,
|
position: previousStep.position + 1,
|
||||||
|
parameters: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextSteps = await flow
|
const nextSteps = await flow
|
||||||
|
@@ -27,13 +27,13 @@ class Step extends Base {
|
|||||||
properties: {
|
properties: {
|
||||||
id: { type: 'integer' },
|
id: { type: 'integer' },
|
||||||
flowId: { type: 'string' },
|
flowId: { type: 'string' },
|
||||||
key: { type: ['string', null] },
|
key: { type: ['string', 'null'] },
|
||||||
appKey: { type: ['string', null], minLength: 1, maxLength: 255 },
|
appKey: { type: ['string', 'null'], minLength: 1, maxLength: 255 },
|
||||||
type: { type: 'string', enum: ['action', 'trigger'] },
|
type: { type: 'string', enum: ['action', 'trigger'] },
|
||||||
connectionId: { type: ['string', null] },
|
connectionId: { type: ['string', 'null'] },
|
||||||
status: { type: 'string', enum: ['incomplete', 'completed'] },
|
status: { type: 'string', enum: ['incomplete', 'completed'] },
|
||||||
position: { type: 'integer' },
|
position: { type: 'integer' },
|
||||||
parameters: { type: ['object', null] },
|
parameters: { type: 'object' },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user