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.time,
|
||||||
s.location,
|
s.location,
|
||||||
s.status,
|
s.status,
|
||||||
s.deleted_at,
|
|
||||||
s.brand_id,
|
s.brand_id,
|
||||||
s.address,
|
s.address,
|
||||||
s.zip,
|
s.zip,
|
||||||
@@ -80,7 +79,6 @@ export default async function AdminStopsPage({ searchParams }: PageProps) {
|
|||||||
time: r.time ?? "",
|
time: r.time ?? "",
|
||||||
location: r.location ?? "",
|
location: r.location ?? "",
|
||||||
active: r.status === "active",
|
active: r.status === "active",
|
||||||
deleted_at: r.deleted_at,
|
|
||||||
brand_id: r.brand_id,
|
brand_id: r.brand_id,
|
||||||
address: r.address,
|
address: r.address,
|
||||||
zip: r.zip,
|
zip: r.zip,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ type Stop = {
|
|||||||
time: string;
|
time: string;
|
||||||
location: string;
|
location: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
deleted_at?: string | null;
|
|
||||||
brand_id: string;
|
brand_id: string;
|
||||||
status?: string;
|
status?: string;
|
||||||
brands: { name: string } | { name: string }[];
|
brands: { name: string } | { name: string }[];
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ type Stop = {
|
|||||||
time: string;
|
time: string;
|
||||||
location: string;
|
location: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
deleted_at?: string | null;
|
|
||||||
brand_id: string;
|
brand_id: string;
|
||||||
status?: string;
|
status?: string;
|
||||||
address?: string | null;
|
address?: string | null;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export type StopForView = {
|
|||||||
time: string;
|
time: string;
|
||||||
location: string;
|
location: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
deleted_at?: string | null;
|
|
||||||
brand_id: string;
|
brand_id: string;
|
||||||
status?: string;
|
status?: string;
|
||||||
address?: string | null;
|
address?: string | null;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ export type Stop = {
|
|||||||
time: string; // HH:MM
|
time: string; // HH:MM
|
||||||
location: string;
|
location: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
deleted_at?: string | null;
|
|
||||||
brand_id: string;
|
brand_id: string;
|
||||||
status?: string;
|
status?: string;
|
||||||
address?: string | null;
|
address?: string | null;
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ function buildPool(): Pool {
|
|||||||
max: parseInt(process.env.PG_POOL_MAX ?? "10", 10),
|
max: parseInt(process.env.PG_POOL_MAX ?? "10", 10),
|
||||||
idleTimeoutMillis: parseInt(process.env.PG_POOL_IDLE_MS ?? "30000", 10),
|
idleTimeoutMillis: parseInt(process.env.PG_POOL_IDLE_MS ?? "30000", 10),
|
||||||
connectionTimeoutMillis: parseInt(
|
connectionTimeoutMillis: parseInt(
|
||||||
process.env.PG_POOL_CONN_TIMEOUT_MS ?? "10000",
|
process.env.PG_POOL_CONN_TIMEOUT_MS ?? "30000",
|
||||||
10,
|
10,
|
||||||
),
|
),
|
||||||
// Vercel/serverless recycling: keep the pool hot for warm invocations.
|
// Vercel/serverless recycling: keep the pool hot for warm invocations.
|
||||||
|
|||||||
Reference in New Issue
Block a user