This commit is contained in:
ZacharyZhang-NY committed 2026-04-05 20:14:48 -04:00
1 parent 09971cabc2
commit 9145572422
163 files changed
+3348 -2874

No files matched your search

+1 -7
View File
@@ -13,13 +13,7 @@ import type {
ThreadWaitingFor,
ThreadWaitStateRecord,
} from "@shared/types";
type SqliteRow = Record<string, any>;
type ReadAll = <T>(sql: string, ...params: SQLInputValue[]) => T[];
function nowIso(): string {
return new Date().toISOString();
}
import { type ReadAll, type SqliteRow, nowIso } from "./helpers";
export function buildThreadMethods(getDb: () => DatabaseSync, readAll: ReadAll) {
function getThread(threadId: string, companyId: string): ConversationThreadRecord | null {