mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
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:
parent
db54469c8a
commit
12a657ce29
@ -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 (
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user