hunk.code_window:         credentials: encryptCredentials(command.credentials ?? {}),
           active: command.active,
         };
         const isActiveAndChannelSupportsPrimary = command.active && CHANNELS_WITH_PRIMARY.includes(command.channel);
         if (isMultiProviderConfigurationEnabled && isActiveAndChannelSupportsPrimary) {
           await this.disableNovuIntegration.execute({
             channel: command.channel,
             providerId: command.providerId,
             environmentId: command.environmentId,
             organizationId: command.organizationId,
             userId: command.userId,
           });
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace replace replace keep
hunk.file_path: apps/api/src/app/integrations/usecases/create-integration/create-integration.usecase.ts
hunk.type: replace
file: import { Injectable } from '@nestjs/common';
  import { SystemCriticalFlagsEnum } from '@novu/shared';
  
  import { GetFeatureFlag } from './get-feature-flag.use-case';
  import { GetSystemCriticalFlag } from './get-system-critical-flag.use-case';
  
  @Injectable()
  export class GetIsInMemoryClusterModeEnabled extends GetSystemCriticalFlag {
    execute(): boolean {
      const value =
        process.env.IS_IN_MEMORY_CLUSTER_MODE_ENABLED ??
        process.env.IN_MEMORY_CLUSTER_MODE_ENABLED;
      const fallbackValue = false;
      const defaultValue = this.prepareBooleanStringSystemCriticalFlag(
        value,
        fallbackValue
      );
      const key = SystemCriticalFlagsEnum.IS_IN_MEMORY_CLUSTER_MODE_ENABLED;
  
      this.log<boolean>(key, defaultValue);
  
      return defaultValue;
    }
  }
  