diff --git a/bahmnicore-omod/src/main/java/org/bahmni/module/bahmnicore/web/v1_0/controller/AdminImportController.java b/bahmnicore-omod/src/main/java/org/bahmni/module/bahmnicore/web/v1_0/controller/AdminImportController.java index 23ce11efc..49a53a114 100644 --- a/bahmnicore-omod/src/main/java/org/bahmni/module/bahmnicore/web/v1_0/controller/AdminImportController.java +++ b/bahmnicore-omod/src/main/java/org/bahmni/module/bahmnicore/web/v1_0/controller/AdminImportController.java @@ -277,7 +277,7 @@ public boolean uploadRelationship(@RequestParam(value = "file") MultipartFile fi @RequestMapping(value = baseUrl + "/status", method = RequestMethod.GET) @ResponseBody - public List status(@RequestParam(required = false) Integer numberOfDays) throws SQLException { + public List 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)));