diff --git a/src/main/java/org/folio/circulation/resources/CirculationSettingsResource.java b/src/main/java/org/folio/circulation/resources/CirculationSettingsResource.java index 84cfe8ead1..a0c80980ef 100644 --- a/src/main/java/org/folio/circulation/resources/CirculationSettingsResource.java +++ b/src/main/java/org/folio/circulation/resources/CirculationSettingsResource.java @@ -77,7 +77,6 @@ void get(RoutingContext routingContext) { ofAsync(routingContext.request().getParam("id")) .thenApply(refuseWhenIdIsInvalid()) - .thenApply(r -> r.map(providedId -> UUID.fromString(providedId).toString())) .thenCompose(r -> r.after(circulationSettingsRepository::getById)) .thenApply(r -> r.map(CirculationSetting::getRepresentation)) .thenApply(r -> r.map(JsonHttpResponse::ok)) @@ -91,7 +90,6 @@ void delete(RoutingContext routingContext) { ofAsync(routingContext.request().getParam("id")) .thenApply(refuseWhenIdIsInvalid()) - .thenApply(r -> r.map(providedId -> UUID.fromString(providedId).toString())) .thenCompose(r -> r.after(clients.circulationSettingsStorageClient()::delete)) .thenApply(r -> r.map(toFixedValue(NoContentResponse::noContent))) .thenAccept(context::writeResultToHttpResponse); @@ -146,7 +144,7 @@ private boolean uuidIsValid(String providedId) { try { return providedId != null && providedId.equals(UUID.fromString(providedId).toString()); } catch(IllegalArgumentException e) { - log.debug("refuseWhenIdIsInvalid:: Invalid UUID"); + log.debug("uuidIsValid:: Invalid UUID"); return false; } }