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:
@ -46,9 +46,7 @@ export class MessagingMessageListFetchCronJob {
|
|||||||
'messageChannel',
|
'messageChannel',
|
||||||
);
|
);
|
||||||
|
|
||||||
const messageChannels = await messageChannelRepository.find({
|
const messageChannels = await messageChannelRepository.find();
|
||||||
select: ['id'],
|
|
||||||
});
|
|
||||||
|
|
||||||
for (const messageChannel of messageChannels) {
|
for (const messageChannel of messageChannels) {
|
||||||
if (
|
if (
|
||||||
|
|||||||
@ -46,8 +46,8 @@ export class MessagingMessageChannelSyncStatusMonitoringCronJob {
|
|||||||
for (const activeWorkspace of activeWorkspaces) {
|
for (const activeWorkspace of activeWorkspaces) {
|
||||||
const messageChannelRepository =
|
const messageChannelRepository =
|
||||||
await this.twentyORMGlobalManager.getRepositoryForWorkspace<MessageChannelWorkspaceEntity>(
|
await this.twentyORMGlobalManager.getRepositoryForWorkspace<MessageChannelWorkspaceEntity>(
|
||||||
'messageChannel',
|
|
||||||
activeWorkspace.id,
|
activeWorkspace.id,
|
||||||
|
'messageChannel',
|
||||||
);
|
);
|
||||||
const messageChannels = await messageChannelRepository.find({
|
const messageChannels = await messageChannelRepository.find({
|
||||||
select: ['id', 'syncStatus', 'connectedAccountId'],
|
select: ['id', 'syncStatus', 'connectedAccountId'],
|
||||||
|
|||||||
Reference in New Issue
Block a user