Patch messaging import crons not running (#6688)

In 0.23.1, we have introduced a regression by migrating to TwentyORM ;
messageChannels were not considered as syncable anymore
This commit is contained in:
Charles Bochet 2024-08-19 19:19:01 +02:00 committed by GitHub
parent db54469c8a
commit 12a657ce29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -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 (

View File

@ -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'],