feat: add default flow name

This commit is contained in:
Ali BARIN
2022-01-30 12:11:50 +01:00
committed by Ömer Faruk Aydın
parent b822e25359
commit 3e5b9478c7
2 changed files with 5 additions and 1 deletions

View File

@@ -11,7 +11,9 @@ type Params = {
const createFlowResolver = async (params: Params, req: RequestWithCurrentUser) => {
const appKey = params?.input?.triggerAppKey;
const flow = await req.currentUser.$relatedQuery('flows').insert({});
const flow = await req.currentUser.$relatedQuery('flows').insert({
name: 'Name your flow',
});
await Step.query().insert({
flowId: flow.id,