mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 07:53:09 +00:00
724c88c201
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.
41 lines
1.6 KiB
TypeScript
41 lines
1.6 KiB
TypeScript
import { Trips } from '../../db/entities/Trips.entity';
|
|
import { AccommodationsModule } from '../accommodations/accommodations.module';
|
|
import { BudgetModule } from '../budget/budget.module';
|
|
import { CollabModule } from '../collab/collab.module';
|
|
import { DaysModule } from '../days/days.module';
|
|
import { FilesModule } from '../files/files.module';
|
|
import { PackingModule } from '../packing/packing.module';
|
|
import { PlacesModule } from '../places/places.module';
|
|
import { ReservationsModule } from '../reservations/reservations.module';
|
|
import { TodoModule } from '../todo/todo.module';
|
|
import { TripMembersModule } from '../trip-members/trip-members.module';
|
|
import { TripReadModelService } from './trip-read-model.service';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { Module } from '@nestjs/common';
|
|
|
|
/** Where the trip read aggregates keep their fan-out, so the write path does not
|
|
* have to carry it. Nothing imports this except trips.
|
|
*
|
|
* `MikroOrmModule.forFeature([Trips])` replaces `DatabaseModule` (Plan 3c
|
|
* Task 6): `TripReadModelService` is now SQL-free — its two sites
|
|
* (`getOwner`/`getTripSummary`'s trip read) both convert to `TripsRepository`
|
|
* methods, unlike `TripMembersModule`'s carve-out next door. */
|
|
@Module({
|
|
imports: [
|
|
MikroOrmModule.forFeature([Trips]),
|
|
TripMembersModule,
|
|
DaysModule,
|
|
AccommodationsModule,
|
|
BudgetModule,
|
|
PackingModule,
|
|
ReservationsModule,
|
|
CollabModule,
|
|
PlacesModule,
|
|
TodoModule,
|
|
FilesModule,
|
|
],
|
|
providers: [TripReadModelService],
|
|
exports: [TripReadModelService],
|
|
})
|
|
export class TripReadModelModule {}
|