test: Adjust step factory to assign correct appKey
This commit is contained in:
@@ -15,7 +15,7 @@ export const createStep = async (params: Partial<Step> = {}) => {
|
||||
params.position = params?.position || (lastStep?.position || 0) + 1;
|
||||
params.status = params?.status || 'completed';
|
||||
params.appKey =
|
||||
params?.appKey || (params.type === 'action' ? 'webhook' : 'deepl');
|
||||
params?.appKey || (params.type === 'action' ? 'deepl' : 'webhook');
|
||||
|
||||
const [step] = await global.knex.table('steps').insert(params).returning('*');
|
||||
|
||||
|
Reference in New Issue
Block a user