Custom URL submitting error handling

This commit is contained in:
Kalle
2022-10-02 00:43:55 +03:00
parent ff857f3369
commit 5e617e7914
4 changed files with 54 additions and 28 deletions

3
app/utils/sql.ts Normal file
View File

@@ -0,0 +1,3 @@
export function errorIsSqliteUniqueConstraintFailure(error: any) {
return error?.code === "SQLITE_CONSTRAINT_UNIQUE";
}