Deprecate workspace datasoure (#16507)

This commit is contained in:
Weiko
2025-12-11 18:27:49 +01:00
committed by GitHub
parent 3dd2684254
commit 083a038f8a
39 changed files with 200 additions and 1929 deletions
@@ -64,9 +64,9 @@ describe('ImapSmtpCalDavAPIService', () => {
return {};
}),
getDataSourceForWorkspace: jest
getGlobalWorkspaceDataSource: jest
.fn()
.mockImplementation(() => mockWorkspaceDataSource),
.mockResolvedValue(mockWorkspaceDataSource),
executeInWorkspaceContext: jest
.fn()
@@ -89,9 +89,7 @@ export class ImapSmtpCalDavAPIService {
existingAccount?.id ?? connectedAccountId ?? v4();
const workspaceDataSource =
await this.globalWorkspaceOrmManager.getDataSourceForWorkspace(
workspaceId,
);
await this.globalWorkspaceOrmManager.getGlobalWorkspaceDataSource();
const existingMessageChannel = existingAccount
? await messageChannelRepository.findOne({