hunk.code_window: VERCEL_CLIENT_SECRET=
   VERCEL_REDIRECT_URI=http://localhost:4200/auth/login
   VERCEL_BASE_URL=https://api.vercel.com
   FF_IS_TOPIC_NOTIFICATION_ENABLED=true
   STORE_NOTIFICATION_CONTENT=true
   MAX_NOVU_INTEGRATION_MAIL_REQUESTS=300
   NOVU_EMAIL_INTEGRATION_API_KEY=
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit: FF_IS_DISTRIBUTED_LOCK_LOGGING_ENABLED=false
  
hunk.file_path: apps/api/src/.env.test
hunk.type: add
file: import { Injectable } from '@nestjs/common';
  import { NotificationRepository } from '@novu/dal';
  import { subDays } from 'date-fns';
  import { ActivityGraphStatesResponse } from '../../dtos/activity-graph-states-response.dto';
  import { GetActivityGraphStatsCommand } from './get-activity-graph-states.command';
  
  @Injectable()
  export class GetActivityGraphStats {
    constructor(private notificationRepository: NotificationRepository) {}
  
    async execute(command: GetActivityGraphStatsCommand): Promise<ActivityGraphStatesResponse[]> {
      return await this.notificationRepository.getActivityGraphStats(
        subDays(new Date(), command.days),
        command.environmentId
      );
    }
  }
  