From 67037ba748091a554281ef0474d507089b644f58 Mon Sep 17 00:00:00 2001 From: Marshal Date: Fri, 5 Jun 2026 17:25:16 +0000 Subject: [PATCH] fix the seed for rules --- apps/edr-freight-api/src/main.ts | 5 +++-- apps/edr-freight-api/src/seed/pricing-data.seeder.ts | 2 ++ apps/edr-freight-web/backoffice/src/App.tsx | 2 +- apps/edr-passenger-api/src/main.ts | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/edr-freight-api/src/main.ts b/apps/edr-freight-api/src/main.ts index f6f32be91..0257eb4c1 100644 --- a/apps/edr-freight-api/src/main.ts +++ b/apps/edr-freight-api/src/main.ts @@ -52,9 +52,10 @@ async function bootstrap() { SwaggerModule.setup("api/docs", app, document); const port = parseInt(process.env.PORT ?? "3001", 10); - await app.listen(port); + await app.listen(port, "0.0.0.0"); + // await app.listen(port) // eslint-disable-next-line no-console - console.log(`[freight-api] listening on http://localhost:${port}`); + console.log(`[freight-api] listening on port ${port}`); } bootstrap(); diff --git a/apps/edr-freight-api/src/seed/pricing-data.seeder.ts b/apps/edr-freight-api/src/seed/pricing-data.seeder.ts index 671436a73..fb8fbf2e6 100644 --- a/apps/edr-freight-api/src/seed/pricing-data.seeder.ts +++ b/apps/edr-freight-api/src/seed/pricing-data.seeder.ts @@ -353,6 +353,8 @@ export class PricingDataSeeder { ): Promise { const effectiveFrom = new Date("2026-01-01"); const now = new Date(); + // await rRepo.createQueryBuilder().delete().execute(); + const rateData = [ { rateType: "CONTAINER_IMPORT", diff --git a/apps/edr-freight-web/backoffice/src/App.tsx b/apps/edr-freight-web/backoffice/src/App.tsx index ea824762e..20747e86f 100644 --- a/apps/edr-freight-web/backoffice/src/App.tsx +++ b/apps/edr-freight-web/backoffice/src/App.tsx @@ -94,7 +94,7 @@ const buildSidebarSections = (demoItems: SidebarItem[]): SidebarSection[] => [ title: "Administration", items: [ { - label: "User management", + label: "User management22", href: "/dashboard/user-management", icon: , children: [ diff --git a/apps/edr-passenger-api/src/main.ts b/apps/edr-passenger-api/src/main.ts index 2271dea3f..b83dd49ce 100644 --- a/apps/edr-passenger-api/src/main.ts +++ b/apps/edr-passenger-api/src/main.ts @@ -27,9 +27,9 @@ async function bootstrap() { SwaggerModule.setup("api/docs", app, document); const port = parseInt(process.env.PORT ?? "3002", 10); - await app.listen(port); + await app.listen(port, "0.0.0.0"); // eslint-disable-next-line no-console - console.log(`[passenger-api] listening on http://localhost:${port}`); + console.log(`[passenger-api] listening on port ${port}`); } bootstrap();