refactor(db): consolidate BOARD_READER_ID in helpers + escape backslash in LIKE (P3-50, P1-26)

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:52:09 -04:00
1 parent b15f6a1415
commit 8867f50b37
6 files changed
+336 -6

No files matched your search

+1 -2
View File
@@ -15,8 +15,7 @@ import type {
TaskRecord,
WorkspaceRecord,
} from "@shared/types";
import { type ReadAll, type SqliteRow, toBoolean } from "./helpers";
const BOARD_READER_ID = "__board__";
import { BOARD_READER_ID, type ReadAll, type SqliteRow, toBoolean } from "./helpers";
export function buildSnapshotMethods(
getDb: () => DatabaseSync,