hunk.code_window: import { GetIntegrationsCommand } from './get-integrations.command';
   @Injectable()
   export class GetIntegrations {
  
hunk.labels: add keep keep keep
hunk.after_edit: import { GetDecryptedIntegrationsCommand } from '../get-decrypted-integrations/get-decrypted-integrations.command';
   import { GetDecryptedIntegrations } from '../get-decrypted-integrations/get-decrypted-integrations.usecase';
  
hunk.file_path: apps/api/src/app/integrations/usecases/get-integrations/get-integrations.usecase.ts
hunk.type: add
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,
      });
    }
  }
  