Handle new account having a team in account merge Closes #2308
Some checks are pending
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
2025-05-19 22:49:15 +03:00
parent 2cecab83f6
commit 31191eeaae
6 changed files with 215 additions and 17 deletions

View File

@@ -2,8 +2,11 @@ export function errorIsSqliteUniqueConstraintFailure(error: any) {
return error?.code === "SQLITE_CONSTRAINT_UNIQUE";
}
export function errorIsSqliteForeignKeyConstraintFailure(error: Error) {
return error?.message?.includes("FOREIGN KEY constraint failed");
export function errorIsSqliteForeignKeyConstraintFailure(error: unknown) {
return (
error instanceof Error &&
error?.message?.includes("FOREIGN KEY constraint failed")
);
}
export function parseDBJsonArray(value: any) {