Skip to content

Commit

Permalink
Merge pull request #4 from DiSSCo/feature/change-status
Browse files Browse the repository at this point in the history
Change status from ok to created
  • Loading branch information
samleeflang authored Sep 28, 2022
2 parents 2c306ba + d54d236 commit 2187517
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 2187517

Please sign in to comment.