Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

882 B
Raw Blame
import { AuditLog } from '../../db/entities/AuditLog.entity';
import { Users } from '../../db/entities/Users.entity';
import { AuditService } from './audit.service';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Module } from '@nestjs/common';

/** Cross-cutting audit domain (Wave 2). No controller/MCP surface of its own —
 *  the audit-log READ side stays with AdminModule (legacy adminService).
 *  Exports AuditService (writeAudit) for the in-container consumers; the pure
 *  helpers (getClientIp, log*) are plain imports from client-ip.ts /
 *  audit-log.logger.ts. Not @Global — e2e TestingModules resolve it
 *  transitively through each consumer's explicit import. Registered in
 *  AppModule. */
@Module({
  imports: [MikroOrmModule.forFeature([AuditLog, Users])],
  providers: [AuditService],
  exports: [AuditService],
})
export class AuditModule {}