From 47ea54df1b7d0b7a018410f17a1c1b9e985577ee Mon Sep 17 00:00:00 2001 From: Nathnael Date: Fri, 7 Aug 2026 07:41:00 +0000 Subject: [PATCH] fix: register facilities module and booking allocation controller Neither was wired into the app, so every /facilities route and POST /bookings/:id/allocate-containers returned 404 and their permission keys granted nothing. --- apps/edr-freight-api/src/app.module.ts | 2 ++ apps/edr-freight-api/src/modules/bookings/bookings.module.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/edr-freight-api/src/app.module.ts b/apps/edr-freight-api/src/app.module.ts index 0375df6df..1b9f6564e 100644 --- a/apps/edr-freight-api/src/app.module.ts +++ b/apps/edr-freight-api/src/app.module.ts @@ -99,6 +99,7 @@ import { MaintenanceModule } from "./modules/maintenance/maintenance.module"; import { ComplianceModule } from "./modules/compliance/compliance.module"; import { IncidentsModule } from "./modules/incidents/incidents.module"; import { ProcurementModule } from "./modules/procurement/procurement.module"; +import { FacilitiesModule } from "./modules/facilities/facilities.module"; import { GpsTrackingModule } from "./modules/gps-tracking/gps-tracking.module"; import { FirstMileModule } from "./modules/first-mile/first-mile.module"; import { LastMileModule } from "./modules/last-mile/last-mile.module"; @@ -237,6 +238,7 @@ if (!process.env.APPLICATION_NAME) { ComplianceModule, IncidentsModule, ProcurementModule, + FacilitiesModule, GpsTrackingModule, FirstMileModule, LastMileModule, diff --git a/apps/edr-freight-api/src/modules/bookings/bookings.module.ts b/apps/edr-freight-api/src/modules/bookings/bookings.module.ts index 84354d860..16c381697 100644 --- a/apps/edr-freight-api/src/modules/bookings/bookings.module.ts +++ b/apps/edr-freight-api/src/modules/bookings/bookings.module.ts @@ -25,6 +25,7 @@ import { BookingLifecycleNotifierService } from './booking-lifecycle-notifier.se import { BookingTransitionService } from './booking-transition.service'; import { NotificationsModule } from '../notifications/notifications.module'; import { NotificationInboxModule } from '../notification-inbox/notification-inbox.module'; +import { BookingAllocationController } from './booking-allocation.controller'; import { BookingsController } from './bookings.controller'; // import { PayController } from './pay.controller'; import { BookingsRepository } from './bookings.repository'; @@ -88,7 +89,7 @@ import { VehiclesModule } from "../vehicles/vehicles.module"; SignaturesModule, registerExchangeModule(), ], - controllers: [BookingsController], + controllers: [BookingsController, BookingAllocationController], providers: [ BookingsService, BookingsRepository,