From 0409167e5ad76f187d29b4638c407e20b055f21d Mon Sep 17 00:00:00 2001 From: justin Date: Sun, 31 May 2026 00:49:18 -0500 Subject: [PATCH] tickets API: allow insurance_lead + business_closeout + truck_sale categories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These lead-capture categories were posted by the DOT checker but missing from VALID_CATEGORIES, so the API rejected them with 400 (insurance_lead too — it was referenced in the Telegram code but never allowlisted). Co-Authored-By: Claude Opus 4.8 (1M context) --- api/src/routes/tickets.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/routes/tickets.ts b/api/src/routes/tickets.ts index aceb1b6..1156919 100644 --- a/api/src/routes/tickets.ts +++ b/api/src/routes/tickets.ts @@ -5,7 +5,10 @@ import { createIssue } from "../erpnext-client.js"; const router = Router(); -const VALID_CATEGORIES = ["question", "support", "issue", "service_request", "quote"] as const; +const VALID_CATEGORIES = [ + "question", "support", "issue", "service_request", "quote", + "insurance_lead", "business_closeout", "truck_sale_quickcash", "truck_sale_marketplace", +] as const; // POST /api/v1/tickets router.post("/api/v1/tickets", submitLimiter, async (req, res) => {