Location fixes

This commit is contained in:
hz
2026-01-21 17:43:39 -06:00
parent fc647890a6
commit 900951b1a7
3 changed files with 11 additions and 0 deletions
@@ -42,6 +42,10 @@ public class LocationsController : ControllerBase
{
return Conflict("Coord must be unique");
}
catch (MongoWriteException ex) when (ex.WriteError.Code == 121)
{
return BadRequest("Location document failed validation");
}
return Ok(location);
}