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.

1.1 KB
Raw Blame
import { AssignmentParticipants } from '../../db/entities/AssignmentParticipants.entity';
import { PlaceRatings } from '../../db/entities/PlaceRatings.entity';
import { Tags } from '../../db/entities/Tags.entity';
import { QueryHelpersService } from './query-helpers.service';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Module } from '@nestjs/common';

/** Shared batch loaders for the list endpoints. No controller or MCP surface of
 *  its own — assignments, days, places and share import it for the loaders.
 *  Deliberately NOT @Global so e2e TestingModules resolve it transitively
 *  through each consumer's explicit import, same as PermissionsModule.
 *
 *  MikroOrmModule.forFeature registers TagsRepository/PlaceRatingsRepository/
 *  AssignmentParticipantsRepository for QueryHelpersService's
 *  @InjectRepository constructor (Plan 3c Task 1). */
@Module({
  imports: [MikroOrmModule.forFeature([Tags, PlaceRatings, AssignmentParticipants])],
  providers: [QueryHelpersService],
  exports: [QueryHelpersService],
})
export class QueryHelpersModule {}