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) <noreply@anthropic.com>
This commit is contained in:
parent
d731390c9d
commit
b988d117a3
@ -67,6 +67,9 @@ export const whatsappAccounts = pgTable(
|
|||||||
* 0002). Powers fuzzy search via the
|
* 0002). Powers fuzzy search via the
|
||||||
* `name % term` operator in O(log n).
|
* `name % term` operator in O(log n).
|
||||||
*/
|
*/
|
||||||
|
export const whatsappGroups = pgTable(
|
||||||
|
"whatsapp_groups",
|
||||||
|
{
|
||||||
id: uuid("id").primaryKey().defaultRandom(),
|
id: uuid("id").primaryKey().defaultRandom(),
|
||||||
accountId: uuid("account_id").notNull().references(() => whatsappAccounts.id, { onDelete: "cascade" }),
|
accountId: uuid("account_id").notNull().references(() => whatsappAccounts.id, { onDelete: "cascade" }),
|
||||||
waGroupJid: text("wa_group_jid").notNull(),
|
waGroupJid: text("wa_group_jid").notNull(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user