refactor(core): Move shared workflow and shared credentials repositories to @n8n/db (#15255)

This commit is contained in:
Iván Ovejero
2025-05-09 17:10:25 +02:00
committed by GitHub
parent e34bca779b
commit 1f6a36e26e
56 changed files with 119 additions and 93 deletions

View File

@@ -3,6 +3,7 @@ import type { User } from '@n8n/db';
import type { WorkflowWithSharingsMetaDataAndCredentials } from '@n8n/db';
import { ProjectRepository } from '@n8n/db';
import { WorkflowHistoryRepository } from '@n8n/db';
import { SharedWorkflowRepository } from '@n8n/db';
import { Container } from '@n8n/di';
import type { ProjectRole } from '@n8n/permissions';
import { ApplicationError, WorkflowActivationError, type INode } from 'n8n-workflow';
@@ -10,7 +11,6 @@ import { v4 as uuid } from 'uuid';
import { ActiveWorkflowManager } from '@/active-workflow-manager';
import config from '@/config';
import { SharedWorkflowRepository } from '@/databases/repositories/shared-workflow.repository';
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
import { UserManagementMailer } from '@/user-management/email';
import { mockInstance } from '@test/mocking';