Merged in feature/simplifystatus (pull request #86)
Simplify Statuses * simple
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user