From faabc533c6df957d8d0c396ad1e30b30d7f2ca63 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 18 Oct 2026 22:05:44 +0000 Subject: [PATCH] fix(tours): the paddle obstacles module imports DemoModule for the region load PaddleRegionLoadService injects DemoService, which only the app graph provided through the @Global DemoModule. A TestingModule that pulls PaddleObstaclesModule in through ToursModule (tours.paddle-check, tours.mcp, wanderer e2e) could not resolve it. The module now imports DemoModule itself, as BudgetModule and FeedsModule do. --- .../src/nest/paddle-obstacles/paddle-obstacles.module.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/src/nest/paddle-obstacles/paddle-obstacles.module.ts b/server/src/nest/paddle-obstacles/paddle-obstacles.module.ts index e1b049988..f6bc47f33 100644 --- a/server/src/nest/paddle-obstacles/paddle-obstacles.module.ts +++ b/server/src/nest/paddle-obstacles/paddle-obstacles.module.ts @@ -3,6 +3,7 @@ import { PaddleRegionRequests } from '../../db/entities/PaddleRegionRequests.ent import { PaddleRegions } from '../../db/entities/PaddleRegions.entity'; import { AddonsModule } from '../addons/addons.module'; import { AuditModule } from '../audit/audit.module'; +import { DemoModule } from '../common/demo.module'; import { NotificationsModule } from '../notifications/notifications.module'; import { PaddleRoutingModule } from '../paddle-routing/paddle-routing.module'; import { SchedulingModule } from '../scheduling/scheduling.module'; @@ -24,12 +25,16 @@ import { Module } from '@nestjs/common'; * which it hands to the paddle routing domain (PAD-11). Where a paddler plans * outside every region, the region around the place is loaded or asked for by * itself (PAD-11C). PaddleObstaclesService is exported for the tours domain's - * route checks (PAD-06, PAD-09). + * route checks (PAD-06, PAD-09). DemoModule is @Global in the app graph and + * imported here for the region load's DemoService, so a TestingModule that + * pulls this module in through ToursModule resolves it too (BudgetModule's + * precedent). */ @Module({ imports: [ AddonsModule, AuditModule, + DemoModule, NotificationsModule, SchedulingModule, PaddleRoutingModule,