Merged in feature/simplifystatus (pull request #86)

Simplify Statuses

* simple
This commit is contained in:
Michael McGuinness
2025-03-04 16:44:18 +00:00
parent a07037b018
commit 1232ed528f
7 changed files with 60 additions and 80 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func (s *Controllers) CreateClient(ctx echo.Context) error {
func (s *Controllers) GetClient(ctx echo.Context, id types.UUID) error {
client, err := s.svc.Client.Get(ctx.Request().Context(), id)
if err != nil {
return echo.NewHTTPError(http.StatusNotFound, fmt.Sprintf("Unable to get client: %s", err))
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Unable to get client: %s", err))
}
return ctx.JSON(http.StatusOK, JobClient{