fix: remove non-existent deleted_at column from stops query
Deploy to route.crispygoat.com / deploy (push) Successful in 3m59s
Deploy to route.crispygoat.com / deploy (push) Successful in 3m59s
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 }[];
|
||||
|
||||
@@ -25,7 +25,6 @@ type Stop = {
|
||||
time: string;
|
||||
location: string;
|
||||
active: boolean;
|
||||
deleted_at?: string | null;
|
||||
brand_id: string;
|
||||
status?: string;
|
||||
address?: string | null;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user