From f50d5deb60851eed35821c9de5ac6716ecee2030 Mon Sep 17 00:00:00 2001 From: marco370 <48531002-marco370@users.noreply.replit.com> Date: Thu, 23 Oct 2025 15:59:13 +0000 Subject: [PATCH] Fix error when saving patrol route stops with missing notes Correctly handle missing `notes` field for patrol route stops during creation, resolving a 500 error. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/WbUtQAg --- .replit | 4 ++++ server/routes.ts | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.replit b/.replit index 75d108a..e6d5f41 100644 --- a/.replit +++ b/.replit @@ -19,6 +19,10 @@ externalPort = 80 localPort = 33035 externalPort = 3001 +[[ports]] +localPort = 39567 +externalPort = 6000 + [[ports]] localPort = 41295 externalPort = 5173 diff --git a/server/routes.ts b/server/routes.ts index 1e0b999..0f83184 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -3729,7 +3729,6 @@ export async function registerRoutes(app: Express): Promise { siteId: stop.siteId, sequenceOrder: index + 1, estimatedArrivalTime: stop.estimatedArrivalTime || null, - notes: stop.notes || null, })); await db.insert(patrolRouteStops).values(stopsData); @@ -3769,7 +3768,6 @@ export async function registerRoutes(app: Express): Promise { siteId: stop.siteId, sequenceOrder: index + 1, estimatedArrivalTime: stop.estimatedArrivalTime || null, - notes: stop.notes || null, })); await db.insert(patrolRouteStops).values(stopsData);