From 270e39edd6727f72e4fd7783fdb1f155cc9afbde Mon Sep 17 00:00:00 2001 From: Hagernesh Date: Wed, 17 Jun 2026 23:04:48 +0000 Subject: [PATCH] fix: post-merge cleanup after freight/develop merge - Remove orphaned container publish route (service method dropped on develop) - turbo.json concurrency as string "12" (parse + 11 persistent-task limit) - database.config: synchronize false (migrations only; fixes weight_limit_rules boot crash) Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/edr-freight-api/src/config/database.config.ts | 2 +- .../modules/train-scheduling/train-scheduling.controller.ts | 6 ------ turbo.json | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/edr-freight-api/src/config/database.config.ts b/apps/edr-freight-api/src/config/database.config.ts index 847908bd5..0e7375b19 100644 --- a/apps/edr-freight-api/src/config/database.config.ts +++ b/apps/edr-freight-api/src/config/database.config.ts @@ -117,7 +117,7 @@ export default registerAs("database", (): TypeOrmModuleOptions => { ], migrationsRun: true, // Schema changes via migrations only (synchronize breaks ITMLS backfill on existing rows). - synchronize: true, + synchronize: false, logging: process.env.NODE_ENV === "development", }; }); diff --git a/apps/edr-freight-api/src/modules/train-scheduling/train-scheduling.controller.ts b/apps/edr-freight-api/src/modules/train-scheduling/train-scheduling.controller.ts index f2b08f771..2a4c3a357 100644 --- a/apps/edr-freight-api/src/modules/train-scheduling/train-scheduling.controller.ts +++ b/apps/edr-freight-api/src/modules/train-scheduling/train-scheduling.controller.ts @@ -427,10 +427,4 @@ export class TrainSchedulingController { cancelBulkTrainSchedule(@Param("id", ParseUUIDPipe) id: string) { return this.trainSchedulingService.cancelTrainSchedule(id); } - - @Post('container/schedules/:id/publish') - @ApiOperation({ summary: 'Publish container train schedule' }) - publishTrainSchedule(@Param('id', ParseUUIDPipe) id: string) { - return this.trainSchedulingService.publishTrainSchedule(id); - } } diff --git a/turbo.json b/turbo.json index 548b6d7a9..18f5d7459 100644 --- a/turbo.json +++ b/turbo.json @@ -1,5 +1,6 @@ { "$schema": "https://turbo.build/schema.json", + "concurrency": "12", "tasks": { "build": { "dependsOn": ["^build"],