Skip to content

Commit

Permalink
Fix Unparseable date: "START_YEAR_DATE"
Browse files Browse the repository at this point in the history
  • Loading branch information
Pozo committed Jul 4, 2024
1 parent 30aee71 commit 734f47e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class GrabberService constructor(
logger.info("Initiating CSV retrieval mechanism. The last trigger date was $latestEndDate.")

if (latestEndDate == null || latestEndDate.isEmpty()) {
logger.info("Retrieving data from '${DataFlowConstants.START_YEAR_DATE}'")
logger.info("Retrieving data from '${DataFlowConstants.START_YEAR_DATE.field}'")
producerTemplate.sendBody(
"direct:grab-data",
"${DataFlowConstants.START_YEAR_DATE}${DataFlowConstants.GRAB_DATA_COMMAND_SEPARATOR.field}${format.format(Date())}"
"${DataFlowConstants.START_YEAR_DATE.field}${DataFlowConstants.GRAB_DATA_COMMAND_SEPARATOR.field}${format.format(Date())}"
)
} else {
logger.info("Retrieving data from '$latestEndDate'")
Expand Down

0 comments on commit 734f47e

Please sign in to comment.