diff --git a/src/main/java/org/folio/service/PrintEventsService.java b/src/main/java/org/folio/service/PrintEventsService.java index 8bd1866a..e80459f4 100644 --- a/src/main/java/org/folio/service/PrintEventsService.java +++ b/src/main/java/org/folio/service/PrintEventsService.java @@ -58,7 +58,7 @@ ORDER BY (jsonb->>'printEventDate')::timestamptz DESC) AS rank """; private static BiFunction requestPrintSyncQueryFun = - (String schemaAndTableName, String ddd) -> String.format(""" + (String printEventTableName, String requestTableName) -> String.format(""" WITH print_counts AS ( SELECT jsonb->>'requestId' AS request_id, @@ -82,7 +82,7 @@ WITH print_counts AS ( ) FROM print_counts WHERE id = print_counts.request_id::uuid; - """, schemaAndTableName); + """, printEventTableName, requestTableName);