From 58e51124a58e5b6ef8898a8745a1f15f85e45133 Mon Sep 17 00:00:00 2001 From: Rahul Ramesh <121226043+rahu1ramesh@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:44:59 +0530 Subject: [PATCH] [Rahul] | BAH-3525 | Add. InterruptedException to status Request --- .../bahmnicore/web/v1_0/controller/AdminImportController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 23ce11efc0..49a53a1140 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)));