Skip to content

Commit

Permalink
SHIBUI-1788
Browse files Browse the repository at this point in the history
Corrected lookup for PUT (update)
  • Loading branch information
chasegawa committed Jun 23, 2021
1 parent 3a968af commit 2c292a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ResponseEntity<?> create(@RequestBody CustomEntityAttributeDefinition def
@PutMapping("/attribute")
@Transactional
public ResponseEntity<?> update(@RequestBody CustomEntityAttributeDefinition definition) {
CustomEntityAttributeDefinition cad = caService.find(definition.getName());
CustomEntityAttributeDefinition cad = caService.find(definition.getResourceId());
if (cad == null) {
HttpHeaders headers = new HttpHeaders();
headers.setLocation(ServletUriComponentsBuilder.fromCurrentServletMapping().path("/api/custom/entity/attribute").build().toUri());
Expand Down

0 comments on commit 2c292a6

Please sign in to comment.