From 24cf9a726116c0e665078bea43baac09f57a19fe Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 10 Jun 2026 13:37:39 -0600 Subject: [PATCH] fix: remove non-existent deleted_at column from stops query --- src/app/admin/stops/page.tsx | 2 -- src/components/admin/AdminStopsPanel.tsx | 1 - src/components/admin/StopTableClient.tsx | 1 - src/components/admin/StopsViewClient.tsx | 1 - src/components/admin/stops/types.ts | 1 - src/lib/db.ts | 2 +- 6 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/app/admin/stops/page.tsx b/src/app/admin/stops/page.tsx index 3c36b1e..aeb2215 100644 --- a/src/app/admin/stops/page.tsx +++ b/src/app/admin/stops/page.tsx @@ -58,7 +58,6 @@ export default async function AdminStopsPage({ searchParams }: PageProps) { s.time, s.location, s.status, - s.deleted_at, s.brand_id, s.address, s.zip, @@ -80,7 +79,6 @@ export default async function AdminStopsPage({ searchParams }: PageProps) { time: r.time ?? "", location: r.location ?? "", active: r.status === "active", - deleted_at: r.deleted_at, brand_id: r.brand_id, address: r.address, zip: r.zip, diff --git a/src/components/admin/AdminStopsPanel.tsx b/src/components/admin/AdminStopsPanel.tsx index 151e0b4..cc441fe 100644 --- a/src/components/admin/AdminStopsPanel.tsx +++ b/src/components/admin/AdminStopsPanel.tsx @@ -15,7 +15,6 @@ type Stop = { time: string; location: string; active: boolean; - deleted_at?: string | null; brand_id: string; status?: string; brands: { name: string } | { name: string }[]; diff --git a/src/components/admin/StopTableClient.tsx b/src/components/admin/StopTableClient.tsx index 64cf912..e69d9fa 100644 --- a/src/components/admin/StopTableClient.tsx +++ b/src/components/admin/StopTableClient.tsx @@ -25,7 +25,6 @@ type Stop = { time: string; location: string; active: boolean; - deleted_at?: string | null; brand_id: string; status?: string; address?: string | null; diff --git a/src/components/admin/StopsViewClient.tsx b/src/components/admin/StopsViewClient.tsx index bdb784d..470b9e6 100644 --- a/src/components/admin/StopsViewClient.tsx +++ b/src/components/admin/StopsViewClient.tsx @@ -16,7 +16,6 @@ export type StopForView = { time: string; location: string; active: boolean; - deleted_at?: string | null; brand_id: string; status?: string; address?: string | null; diff --git a/src/components/admin/stops/types.ts b/src/components/admin/stops/types.ts index 3816a97..87e8d2c 100644 --- a/src/components/admin/stops/types.ts +++ b/src/components/admin/stops/types.ts @@ -8,7 +8,6 @@ export type Stop = { time: string; // HH:MM location: string; active: boolean; - deleted_at?: string | null; brand_id: string; status?: string; address?: string | null; diff --git a/src/lib/db.ts b/src/lib/db.ts index 8bddd93..f902c2e 100644 --- a/src/lib/db.ts +++ b/src/lib/db.ts @@ -51,7 +51,7 @@ function buildPool(): Pool { max: parseInt(process.env.PG_POOL_MAX ?? "10", 10), idleTimeoutMillis: parseInt(process.env.PG_POOL_IDLE_MS ?? "30000", 10), connectionTimeoutMillis: parseInt( - process.env.PG_POOL_CONN_TIMEOUT_MS ?? "10000", + process.env.PG_POOL_CONN_TIMEOUT_MS ?? "30000", 10, ), // Vercel/serverless recycling: keep the pool hot for warm invocations.