hunk.code_window:   async execute(command: GetIntegrationsCommand): Promise<IntegrationEntity[]> {
       return await this.integrationRepository.findByEnvironmentId(command.environmentId);
     }
   }
hunk.labels: keep keep replace keep keep
hunk.after_edit:     return await this.getDecryptedIntegrationsUsecase.execute(
         GetDecryptedIntegrationsCommand.create({
           environmentId: command.environmentId,
           organizationId: command.organizationId,
         })
       );
  
hunk.file_path: apps/api/src/app/integrations/usecases/get-integrations/get-integrations.usecase.ts
hunk.type: replace
file: import { Injectable } from '@nestjs/common';
  import { SubscriberRepository } from '@novu/dal';
  import { UpdateSubscriberPreference, UpdateSubscriberPreferenceCommand } from '../update-subscriber-preference';
  import { UpdatePreferenceCommand } from './update-preference.command';
  
  @Injectable()
  export class UpdatePreference {
    constructor(
      private subscriberRepository: SubscriberRepository,
      private updateSubscriberPreferenceUsecase: UpdateSubscriberPreference
    ) {}
  
    async execute(command: UpdatePreferenceCommand) {
      const subscriber = await this.subscriberRepository.findBySubscriberId(command.environmentId, command.subscriberId);
  
      const updateCommand = UpdateSubscriberPreferenceCommand.create({
        organizationId: command.organizationId,
        subscriberId: subscriber._id,
        environmentId: command.environmentId,
        templateId: command.templateId,
        channel: command.channel,
        enabled: command.enabled,
      });
  
      return await this.updateSubscriberPreferenceUsecase.execute(updateCommand);
    }
  }
  