import { Module } from '@nestjs/common'; import { APP_INTERCEPTOR } from '@nestjs/core'; import { AuthModule } from '../auth/auth.module'; import { BillingModule } from '../billing/billing.module'; import { AuditLogsController } from './audit-logs.controller'; import { AuditLogsInterceptor } from './audit-logs.interceptor'; import { AuditLogsService } from './audit-logs.service'; @Module({ imports: [AuthModule, BillingModule], controllers: [AuditLogsController], providers: [ AuditLogsService, { provide: APP_INTERCEPTOR, useClass: AuditLogsInterceptor, }, ], exports: [AuditLogsService], }) export class AuditLogsModule {}