From 6f4870f09ed66ba9f8c70b8b1580debe9ec0c18d Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Tue, 20 Jan 2026 23:16:28 +0000 Subject: [PATCH] fix npm run build --- stripe_to_invoice/lib/schema/xeroConnections.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stripe_to_invoice/lib/schema/xeroConnections.ts b/stripe_to_invoice/lib/schema/xeroConnections.ts index 572ce66..f1f8092 100644 --- a/stripe_to_invoice/lib/schema/xeroConnections.ts +++ b/stripe_to_invoice/lib/schema/xeroConnections.ts @@ -13,6 +13,11 @@ export const xeroConnections = pgTable("xero_connections", { salesAccountCode: text("sales_account_code"), stripeClearingAccountCode: text("stripe_clearing_account_code"), - createdAt: timestamp("created_at", { withTimezone: true }).notNull(), - updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(), + createdAt: timestamp("created_at", { withTimezone: true }) + .notNull() + .defaultNow(), + + updatedAt: timestamp("updated_at", { withTimezone: true }) + .notNull() + .defaultNow(), });