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 { MapsModule } from '../maps/maps.module';
import { MemoriesModule } from '../memories/memories.module';
import { JourneyDomainModule } from './journey-domain.module';
import { JourneyPhotoCaptureService } from './journey-photo-capture.service';
import { Module } from '@nestjs/common';

/**
 * The capture-time backfill as the journey surfaces use it: fill taken_at, then,
 * for a batch of provider photos, tell the journey (#1587).
 *
 * Its own module because two containers need the same instance of the rule:
 * JourneyModule (REST routes and the MCP tool) and JournalRpcModule (the plugin
 * RPC). Neither JourneyDomainModule nor MemoriesModule can own it, the first
 * because it stays free of the photo providers on purpose and the second
 * because the memories domain knows nothing about journeys.
 */
@Module({
  // MapsModule names an entry placed from its photo (#1003); it is a leaf.
  imports: [JourneyDomainModule, MemoriesModule, MapsModule],
  providers: [JourneyPhotoCaptureService],
  exports: [JourneyPhotoCaptureService],
})
export class JourneyPhotoCaptureModule {}