Files
TREK/server/src/nest/feeds/feeds.module.ts
T
Maurice 724c88c201 style: format server and shared with prettier
A mechanical prettier --write over server/src, server/tests, server/scripts
and shared/src with the workspaces' .prettierrc; nothing but layout and
import order changes, and every file keeps the same set of imports. shared
is formatted throughout and its format baseline is empty. The server
baseline keeps the 35 files that Prettier would grow past their lint:size
limit (they need a split first, which is not a formatting change), and the
generated entity files stay as their generator writes them.
2026-10-10 21:23:37 +02:00

41 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Trips } from '../../db/entities/Trips.entity';
import { Users } from '../../db/entities/Users.entity';
import { AppConfigModule } from '../app-config/app-config.module';
import { CalendarModule } from '../calendar/calendar.module';
import { DemoModule } from '../common/demo.module';
import { McpSharedModule } from '../mcp-shared/mcp-shared.module';
import { PermissionsModule } from '../permissions/permissions.module';
import { RealtimeModule } from '../realtime/realtime.module';
import { FeedsPublicController, TripFeedTokenController, UserFeedTokenController } from './feeds.controller';
import { FeedsMcp } from './feeds.mcp';
import { FeedsService } from './feeds.service';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Module } from '@nestjs/common';
@Module({
// Calendars, not the trip aggregate: feeds only ever needed an ICS string, and
// importing TripsModule for it pulled budget, packing, places and the rest in.
// Permissions comes in for TripAccessGuard, which gates the trip feed token.
// `MikroOrmModule.forFeature([Trips, Users])` registers `TripsRepository`/
// `UsersRepository` for `FeedsService`'s `@InjectRepository` constructor
// params (Plan 3d Task 5, FD1–FD11) — the same forFeature + `@InjectRepository`
// wiring `days.module.ts` documents. The last four are FeedsMcp's:
// McpSharedModule for the RBAC check the route gets from its guard,
// AppConfigModule, RealtimeModule and DemoModule because a module graph
// assembled without AppModule (the e2e harnesses) has to instantiate those
// @Global modules itself before anything can inject out of them (DemoModule
// added Plan 3i Task 4 fix wave — FeedsMcp injects DemoService).
imports: [
CalendarModule,
PermissionsModule,
McpSharedModule,
AppConfigModule,
RealtimeModule,
DemoModule,
MikroOrmModule.forFeature([Trips, Users]),
],
controllers: [FeedsPublicController, TripFeedTokenController, UserFeedTokenController],
providers: [FeedsService, FeedsMcp],
})
export class FeedsModule {}