Skip to content

Commit

Permalink
[Rahul] | BAH-3525 | Add. InterruptedException to status Request
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh authored Feb 10, 2024
1 parent 414cc29 commit 58e5112
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public boolean uploadRelationship(@RequestParam(value = "file") MultipartFile fi

@RequestMapping(value = baseUrl + "/status", method = RequestMethod.GET)
@ResponseBody
public List<ImportStatus> status(@RequestParam(required = false) Integer numberOfDays) throws SQLException {
public List<ImportStatus> status(@RequestParam(required = false) Integer numberOfDays) throws InterruptedException, SQLException {
numberOfDays = numberOfDays == null ? DEFAULT_NUMBER_OF_DAYS : numberOfDays;
ImportStatusDao importStatusDao = new ImportStatusDao(new CurrentThreadConnectionProvider());
return importStatusDao.getImportStatusFromDate(DateUtils.addDays(new Date(), (numberOfDays * -1)));
Expand Down

0 comments on commit 58e5112

Please sign in to comment.