mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-20 18:29:48 -05:00
GroupMatch has unique constraints on both alphaGroupId and bravoGroupId (a group can only be in one match). If two managers click MATCH_UP at nearly the same moment against overlapping groups, the second INSERT trips SQLITE_CONSTRAINT_UNIQUE and bubbles up as a 500. Translate that error into a SendouQError inside SQMatchRepository.create so the q/looking action's existing SendouQError catch treats it like any other stale-state error and returns null, which causes the loader to re-run and the user sees the fresh state instead of an error page. |
||
|---|---|---|
| .. | ||
| components | ||
| db | ||
| features | ||
| form | ||
| hooks | ||
| modules | ||
| routines | ||
| styles | ||
| utils | ||
| browser-test-setup.ts | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||
| test-setup.ts | ||