Skip to content

Commit

Permalink
[Fix partially kbss-cvut/record-manager-ui#182] Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Jul 11, 2024
1 parent 6761b69 commit f91a828
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ public void updateRecord(@PathVariable("key") String key, @RequestBody PatientRe

private void onUpdateRecord(URI uri){
Objects.nonNull(uri);
String onRecordUpdateServiceUrl = configReader.getConfig(ConfigParam.ON_UPDATE_RECORD_SERVICE_URL);
String onRecordUpdateServiceUrl = Optional.ofNullable(configReader)
.map(r -> r.getConfig(ConfigParam.ON_UPDATE_RECORD_SERVICE_URL))
.orElse(null);

if(onRecordUpdateServiceUrl == null || onRecordUpdateServiceUrl.isBlank()) {
LOG.debug("No onRecordUpdateServiceUrl service url provided, noop.");
return;
Expand Down

0 comments on commit f91a828

Please sign in to comment.