connected accounts follow up (#18998)

- Fixed group emails actions
- Fixed delta updates for folder manager
- Updated crons
This commit is contained in:
neo773
2026-03-26 18:44:49 +05:30
committed by GitHub
parent 36c7c99e34
commit 82611de9b6
12 changed files with 110 additions and 41 deletions
@@ -313,7 +313,7 @@ describe('SyncMessageFoldersService', () => {
expect(mockMessageFolderDataAccessService.update).toHaveBeenCalledWith(
workspaceId,
{ id: 'folder-1' },
{ id: 'folder-1', messageChannelId: 'channel-123' },
expect.objectContaining({ name: 'Primary Inbox' }),
);
expect(result).toContainEqual(
@@ -353,7 +353,7 @@ describe('SyncMessageFoldersService', () => {
expect(mockMessageFolderDataAccessService.update).toHaveBeenCalledWith(
workspaceId,
{ id: 'folder-1' },
{ id: 'folder-1', messageChannelId: 'channel-123' },
expect.objectContaining({
parentFolderId: 'new-parent-id',
}),
@@ -500,7 +500,7 @@ describe('SyncMessageFoldersService', () => {
);
expect(mockMessageFolderDataAccessService.update).toHaveBeenCalledWith(
workspaceId,
{ id: 'folder-to-update' },
{ id: 'folder-to-update', messageChannelId: 'channel-123' },
expect.objectContaining({ name: 'New Name' }),
);
expect(mockMessageFolderDataAccessService.save).toHaveBeenCalledWith(
@@ -152,7 +152,7 @@ export class SyncMessageFoldersService {
for (const [id, data] of foldersToUpdate.entries()) {
await this.messageFolderDataAccessService.update(
workspaceId,
{ id },
{ id, messageChannelId },
data,
);
}