fix: remove non-existent deleted_at column from stops query
Deploy to route.crispygoat.com / deploy (push) Successful in 3m59s

This commit is contained in:
Tyler
2026-06-10 13:37:39 -06:00
parent 8428f3a490
commit 24cf9a7261
6 changed files with 1 additions and 7 deletions
-2
View File
@@ -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,
-1
View File
@@ -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 }[];
-1
View File
@@ -25,7 +25,6 @@ type Stop = {
time: string;
location: string;
active: boolean;
deleted_at?: string | null;
brand_id: string;
status?: string;
address?: string | null;
-1
View File
@@ -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;
-1
View File
@@ -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;
+1 -1
View File
@@ -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.