fix: stop checking empty app input in createFlow
This commit is contained in:
@@ -17,7 +17,9 @@ const createFlow = async (
|
|||||||
const connectionId = params?.input?.connectionId;
|
const connectionId = params?.input?.connectionId;
|
||||||
const appKey = params?.input?.triggerAppKey;
|
const appKey = params?.input?.triggerAppKey;
|
||||||
|
|
||||||
|
if (appKey) {
|
||||||
await App.findOneByKey(appKey);
|
await App.findOneByKey(appKey);
|
||||||
|
}
|
||||||
|
|
||||||
const flow = await context.currentUser.$relatedQuery('flows').insert({
|
const flow = await context.currentUser.$relatedQuery('flows').insert({
|
||||||
name: 'Name your flow',
|
name: 'Name your flow',
|
||||||
|
Reference in New Issue
Block a user