hunk.code_window:   constructor(
       private subscriberPreferenceRepository: SubscriberPreferenceRepository,
       private getSubscriberTemplatePreference: GetSubscriberTemplatePreference,
       private notificationTemplateRepository: NotificationTemplateRepository
     ) {}
     async execute(command: UpdateSubscriberPreferenceCommand): Promise<ISubscriberPreferenceResponse> {
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:     private notificationTemplateRepository: NotificationTemplateRepository,
       @Inject(ANALYTICS_SERVICE) private analyticsService: AnalyticsService
  
hunk.file_path: apps/api/src/app/widgets/usecases/update-subscriber-preference/update-subscriber-preference.usecase.ts
hunk.type: replace
file: import { Injectable } from '@nestjs/common';
  import { IntegrationEntity, IntegrationRepository } from '@novu/dal';
  import { GetActiveIntegrationsCommand } from './get-active-integration.command';
  
  @Injectable()
  export class GetActiveIntegrations {
    constructor(private integrationRepository: IntegrationRepository) {}
  
    async execute(command: GetActiveIntegrationsCommand): Promise<IntegrationEntity[]> {
      return await this.integrationRepository.find({
        _environmentId: command.environmentId,
        active: true,
      });
    }
  }
  