From 57b915678b19e540cce82ba4172254e5c6c02135 Mon Sep 17 00:00:00 2001 From: SreejaMangarapu Date: Wed, 3 Jul 2024 17:45:07 +0530 Subject: [PATCH] CIRC-2099 POST Api implementation --- .../org/folio/circulation/resources/PrintEventsResource.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/folio/circulation/resources/PrintEventsResource.java b/src/main/java/org/folio/circulation/resources/PrintEventsResource.java index c18fbe6f96..22f9e64626 100644 --- a/src/main/java/org/folio/circulation/resources/PrintEventsResource.java +++ b/src/main/java/org/folio/circulation/resources/PrintEventsResource.java @@ -37,11 +37,10 @@ void create(RoutingContext routingContext) { final var context = new WebContext(routingContext); final var clients = Clients.create(context, client); final var printEventsRepository = new PrintEventsRepository(clients); - final var incomingRepresentation = routingContext.body().asJsonObject(); final var printEventRequest = PrintEventRequest.from(incomingRepresentation); - log.info("create:: Creating print event: {}", () -> printEventRequest); + log.info("create:: Creating print event: {}", printEventRequest); ofAsync(printEventRequest) .thenApply(refuseWhenPrintEventRequestIsInvalid())