Skip to content

Commit

Permalink
CIRC-2138: added sync for request table post PrintEvent insertions
Browse files Browse the repository at this point in the history
  • Loading branch information
kapil-epam committed Sep 9, 2024
1 parent a2b606b commit 5b904bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/folio/service/PrintEventsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ORDER BY (jsonb->>'printEventDate')::timestamptz DESC) AS rank
""";

private static BiFunction<String, String, String> requestPrintSyncQueryFun =
(String schemaAndTableName, String ddd) -> String.format("""
(String printEventTableName, String requestTableName) -> String.format("""
WITH print_counts AS (
SELECT
jsonb->>'requestId' AS request_id,
Expand All @@ -82,7 +82,7 @@ WITH print_counts AS (
)
FROM print_counts
WHERE id = print_counts.request_id::uuid;
""", schemaAndTableName);
""", printEventTableName, requestTableName);



Expand Down

0 comments on commit 5b904bf

Please sign in to comment.