fix: stop checking empty app input in createFlow

This commit is contained in:
Ali BARIN
2023-03-13 22:11:55 +00:00
parent cc90f19a46
commit aec9595dea

View File

@@ -17,7 +17,9 @@ const createFlow = async (
const connectionId = params?.input?.connectionId;
const appKey = params?.input?.triggerAppKey;
await App.findOneByKey(appKey);
if (appKey) {
await App.findOneByKey(appKey);
}
const flow = await context.currentUser.$relatedQuery('flows').insert({
name: 'Name your flow',