fix(GRO-1241): remove duplicate staffReadAt + add count mock
- Remove duplicate staffReadAt column in conversations table schema (merge conflict artifact — TS1117 duplicate definition) - Add count mock to conversations.test.ts mock @groombook/db export (PR switched from sql\`count(*)\` to Drizzle count() without updating mock) Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -169,6 +169,7 @@ vi.mock("@groombook/db", () => {
|
||||
lt: vi.fn((a, b) => ({ type: "lt", a, b })),
|
||||
sql: vi.fn(() => ({ __type: "sql" })),
|
||||
isNull: vi.fn((col) => ({ type: "isNull", col })),
|
||||
count: vi.fn((col) => ({ type: "count", col })),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -466,7 +466,6 @@ export const conversations = pgTable(
|
||||
staffReadAt: timestamp("staff_read_at"),
|
||||
createdAt: timestamp("created_at").notNull().defaultNow(),
|
||||
updatedAt: timestamp("updated_at").notNull().defaultNow(),
|
||||
staffReadAt: timestamp("staff_read_at"),
|
||||
},
|
||||
(t) => [
|
||||
index("idx_conversations_business_id_last_message_at").on(
|
||||
|
||||
Reference in New Issue
Block a user