Skip to content

Commit

Permalink
Patch messaging import crons not running (#6688)
Browse files Browse the repository at this point in the history
In 0.23.1, we have introduced a regression by migrating to TwentyORM ;
messageChannels were not considered as syncable anymore
  • Loading branch information
charlesBochet authored Aug 19, 2024
1 parent db54469 commit 12a657c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export class MessagingMessageListFetchCronJob {
'messageChannel',
);

const messageChannels = await messageChannelRepository.find({
select: ['id'],
});
const messageChannels = await messageChannelRepository.find();

for (const messageChannel of messageChannels) {
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export class MessagingMessageChannelSyncStatusMonitoringCronJob {
for (const activeWorkspace of activeWorkspaces) {
const messageChannelRepository =
await this.twentyORMGlobalManager.getRepositoryForWorkspace<MessageChannelWorkspaceEntity>(
'messageChannel',
activeWorkspace.id,
'messageChannel',
);
const messageChannels = await messageChannelRepository.find({
select: ['id', 'syncStatus', 'connectedAccountId'],
Expand Down

0 comments on commit 12a657c

Please sign in to comment.