Custom flow in pick/ban (#2923)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-03-29 18:00:15 +03:00
committed by GitHub
parent a1788ba89b
commit 7300693ba9
51 changed files with 4146 additions and 180 deletions

View File

@@ -7,6 +7,15 @@ export function errorIsSqliteForeignKeyConstraintFailure(
);
}
export function errorIsSqliteUniqueConstraintFailure(
error: unknown,
): error is Error {
return (
error instanceof Error &&
error?.message?.includes("UNIQUE constraint failed")
);
}
export function parseDBJsonArray(value: any) {
const parsed = JSON.parse(value);