From 1f50d06f9a698b4d52a06246a69646dbb5ce90f7 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 5 Dec 2024 11:10:59 -0800 Subject: [PATCH] fix(SILVA-515): fixed timeframe on default values --- .../restapi/results/oracle/endpoint/UserActionsEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/endpoint/UserActionsEndpoint.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/endpoint/UserActionsEndpoint.java index ff962ed3..514ba241 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/endpoint/UserActionsEndpoint.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/endpoint/UserActionsEndpoint.java @@ -61,11 +61,11 @@ public ResponseEntity> getOpeningsSubmissionTrends( List resultList = openingTrendsService.getOpeningSubmissionTrends( - getDateOrDefault(entryDateStart,LocalDate.now()), + getDateOrDefault(entryDateStart,LocalDate.now().minusYears(1)), getDateOrDefault(entryDateEnd, //If we have an end date, we get it, otherwise we use the current date, // and no matter if we have the start date or not, we add a year to the end date - getDateOrDefault(entryDateStart,LocalDate.now()).plusYears(1) + getDateOrDefault(entryDateStart,LocalDate.now().minusYears(1)).plusYears(1) ), orgUnits, statusCodes