Skip to content

Commit

Permalink
Change status from ok to created
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Sep 28, 2022
1 parent 2c306ba commit d54d236
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ResponseEntity<DigitalSpecimenRecord> upsertDigitalSpecimen(@RequestBody
DigitalSpecimenEvent event) throws TransformerException, NoChangesFoundException {
log.info("Received digitalSpecimen upsert: {}", event);
var result = processingService.handleMessages(event);
return ResponseEntity.ok(result);
return ResponseEntity.status(HttpStatus.CREATED).body(result);
}

@ExceptionHandler(NoChangesFoundException.class)
Expand Down

0 comments on commit d54d236

Please sign in to comment.