diff --git a/packages/backend/test/factories/step.ts b/packages/backend/test/factories/step.ts index 560808dd..409adda2 100644 --- a/packages/backend/test/factories/step.ts +++ b/packages/backend/test/factories/step.ts @@ -5,7 +5,7 @@ export const createStep = async (params: Partial = {}) => { params.flowId = params?.flowId || (await createFlow()).id; params.type = params?.type || 'action'; - const [lastStep] = await global.knex + const lastStep = await global.knex .table('steps') .where('flowId', params.flowId) .andWhere('deletedAt', '!=', null)