mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-02 03:53:24 +00:00
CreateAsync checks FindByEmailAsync and then inserts, so two concurrent creates with the same email can both pass the check and hit the unique user-name index. That DbUpdateException was unhandled and surfaced as a 500. Catch it at the CreateAsync call and return the existing "Email is already in use." message, matching the check-then-insert converge pattern already used by SetOverrideCoreAsync. |
||
|---|---|---|
| .. | ||
| Configuration | ||
| Constants | ||
| DependencyInjection | ||
| DTOs | ||
| Exceptions | ||
| Helpers | ||
| Implementation | ||
| Interfaces | ||
| Validation | ||
| SeaHaven.Services.csproj | ||