Deprecate workspace datasoure (#16507)
This commit is contained in:
+2
-2
@@ -64,9 +64,9 @@ describe('ImapSmtpCalDavAPIService', () => {
|
||||
|
||||
return {};
|
||||
}),
|
||||
getDataSourceForWorkspace: jest
|
||||
getGlobalWorkspaceDataSource: jest
|
||||
.fn()
|
||||
.mockImplementation(() => mockWorkspaceDataSource),
|
||||
.mockResolvedValue(mockWorkspaceDataSource),
|
||||
executeInWorkspaceContext: jest
|
||||
.fn()
|
||||
|
||||
|
||||
+1
-3
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user