Skip to content

Commit ba03d02

Browse files
committed
Update db workflow repo test
1 parent fe34ed7 commit ba03d02

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/@n8n/db/src/repositories/__tests__/workflow.repository.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ describe('WorkflowRepository', () => {
249249
}),
250250
);
251251

252-
expect(queryBuilder.andWhere).toHaveBeenCalledWith('workflow.active = :active', {
253-
active: true,
254-
});
252+
expect(queryBuilder.andWhere).toHaveBeenCalledWith('workflow.activeVersionId IS NOT NULL');
255253

256254
expect(queryBuilder.innerJoin).toHaveBeenCalledWith('workflow.shared', 'shared');
257255
expect(queryBuilder.andWhere).toHaveBeenCalledWith('shared.projectId = :projectId', {

0 commit comments

Comments
 (0)