feat: add volunteer shift signup app

Initial source, tests, migrations, and local Docker setup for the Hope Food Pantry volunteer scheduler.
This commit is contained in:
blake committed 2026-10-16 09:33:39 -05:00
commit f1a46e2ba7
129 files changed
+25290

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
export function isUniqueConstraint(err: unknown): boolean {
return (
err instanceof Error &&
'code' in err &&
String((err as { code: unknown }).code).includes('SQLITE_CONSTRAINT') &&
/unique/i.test(err.message)
);
}
export function isBusy(err: unknown): boolean {
return err instanceof Error && 'code' in err && String((err as { code: unknown }).code).includes('SQLITE_BUSY');
}