diff --git a/src/main/java/com/cpd/coronapreventiondivision/Controller/ReportController.java b/src/main/java/com/cpd/coronapreventiondivision/Controller/ReportController.java index f20ab3a..1af605d 100644 --- a/src/main/java/com/cpd/coronapreventiondivision/Controller/ReportController.java +++ b/src/main/java/com/cpd/coronapreventiondivision/Controller/ReportController.java @@ -142,12 +142,12 @@ public void setMissing(boolean update) { @PostMapping("update-appointment-report") @ResponseBody - public void updateResult(@RequestParam(required = false) Integer appointment_id, @RequestParam(required = false) String result) { - if (result == null || appointment_id == null) { - return; - } + public void updateResult(@RequestParam(required = false) Integer appointment_id, @RequestParam(required = false) String status) { +// if (result == null || appointment_id == null) { +// return; +// } - reportService.updateAppointment(Appointment.Result.valueOf(result), appointment_id); + reportService.updateAppointment(Appointment.Result.valueOf(status), appointment_id); } diff --git a/src/main/resources/templates/logging/secretary-landing.html b/src/main/resources/templates/logging/secretary-landing.html index 6f230f7..2bb9964 100644 --- a/src/main/resources/templates/logging/secretary-landing.html +++ b/src/main/resources/templates/logging/secretary-landing.html @@ -49,8 +49,10 @@