import { Module, forwardRef } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { EventsController } from './events.controller'; import { EventsService } from './events.service'; import { AwsService } from '../aws/aws.service'; import { RawEvent } from '../entities/raw-event.entity'; import { Device } from '../entities/device.entity'; import { ValidatedEvent } from '../entities/validated-event.entity'; import { UserProfile } from '../entities/user-profile.entity'; import { PaymentsModule } from '../payments/payments.module'; @Module({ imports: [ TypeOrmModule.forFeature([RawEvent, Device, ValidatedEvent, UserProfile]), forwardRef(() => PaymentsModule), ], controllers: [EventsController], providers: [EventsService, AwsService], exports: [EventsService, AwsService], }) export class EventsModule {}