From aa727e3260a02bfc72c801b46bd826fcc4602929 Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Tue, 31 Oct 2023 15:56:35 +0100 Subject: [PATCH] test: Adjust step factory to assign correct appKey --- packages/backend/test/factories/step.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/test/factories/step.ts b/packages/backend/test/factories/step.ts index baaaf090..f26d8f7c 100644 --- a/packages/backend/test/factories/step.ts +++ b/packages/backend/test/factories/step.ts @@ -15,7 +15,7 @@ export const createStep = async (params: Partial = {}) => { 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('*');