From a8efc17fff9c54bb395aa46021990a84766c795f Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Sat, 13 Jan 2024 12:06:37 +0100 Subject: [PATCH] Fix post merge conflict --- .../messaging/commands/gmail-partial-sync.command.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/twenty-server/src/workspace/messaging/commands/gmail-partial-sync.command.ts b/packages/twenty-server/src/workspace/messaging/commands/gmail-partial-sync.command.ts index ce7950cd6..64de1265c 100644 --- a/packages/twenty-server/src/workspace/messaging/commands/gmail-partial-sync.command.ts +++ b/packages/twenty-server/src/workspace/messaging/commands/gmail-partial-sync.command.ts @@ -3,7 +3,10 @@ import { InjectRepository } from '@nestjs/typeorm'; import { Command, CommandRunner, Option } from 'nest-commander'; import { Repository } from 'typeorm'; -import { FeatureFlagEntity } from 'src/core/feature-flag/feature-flag.entity'; +import { + FeatureFlagEntity, + FeatureFlagKeys, +} from 'src/core/feature-flag/feature-flag.entity'; import { MessagingProducer } from 'src/workspace/messaging/producers/messaging-producer'; import { MessagingUtilsService } from 'src/workspace/messaging/services/messaging-utils.service'; @@ -32,7 +35,7 @@ export class GmailPartialSyncCommand extends CommandRunner { ): Promise { const isMessagingEnabled = await this.featureFlagRepository.findOneBy({ workspaceId: options.workspaceId, - key: 'IS_MESSAGING_ENABLED', + key: FeatureFlagKeys.IsMessagingEnabled, value: true, });