Skip to content
Snippets Groups Projects
Commit 63cbbe6c authored by Pedro Pablo Cardona Arroyave's avatar Pedro Pablo Cardona Arroyave
Browse files

A possible solution was added

parent 875dbbc6
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ public class UserController {
.map(user -> ResponseEntity.ok(user.getAllergies().size() > 0))
.orElseGet(() -> ResponseEntity.notFound().build());
}catch (Exception e){
return ResponseEntity.unprocessableEntity().body(false);
return ResponseEntity.status(409).body(false);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment