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 -1
View File
@@ -8,6 +8,7 @@ import type {
StandupReport,
} from "@shared/types";
import {
BOARD_READER_ID,
type ReadAll,
type Transaction,
} from "./helpers";
@@ -415,7 +416,6 @@ export function buildCompanySettingsMethods(
budgetWarnings: number;
unreadMessages: number;
} {
const BOARD_READER_ID = "__board__";
const pendingApprovals =
(
getDb()