From b988d117a38db9c595b4ff91e21f9810d9f92df2 Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sun, 10 May 2026 21:34:27 +0800 Subject: [PATCH] fix(db): restore whatsappGroups declaration that perf-notes comment ate A doc-comment refactor in 08f2c0f silently swallowed the 'export const whatsappGroups = pgTable(...)' line and its inner '{' opening brace, leaving the column properties at top level. Bot's typecheck happened to pass on a stale build, but the web container's startup pnpm --filter @cmbot/db build failed with 'Expression expected' / ';' expected at lines 71-77. Re-add the missing 4 lines. Web is back up. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/db/src/schema.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index 1669a82..af5ad4e 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -67,6 +67,9 @@ export const whatsappAccounts = pgTable( * 0002). Powers fuzzy search via the * `name % term` operator in O(log n). */ +export const whatsappGroups = pgTable( + "whatsapp_groups", + { id: uuid("id").primaryKey().defaultRandom(), accountId: uuid("account_id").notNull().references(() => whatsappAccounts.id, { onDelete: "cascade" }), waGroupJid: text("wa_group_jid").notNull(),