diff --git a/src/main/java/com/iemr/helpline104/controller/beneficiarycall/BeneficiaryCallController.java b/src/main/java/com/iemr/helpline104/controller/beneficiarycall/BeneficiaryCallController.java index 5942e44..b5bcdba 100644 --- a/src/main/java/com/iemr/helpline104/controller/beneficiarycall/BeneficiaryCallController.java +++ b/src/main/java/com/iemr/helpline104/controller/beneficiarycall/BeneficiaryCallController.java @@ -98,9 +98,10 @@ public String updateBeneficiaryIDInCall( if (null != beneficiarycall.getBeneficiaryRegID()) { startedCall = beneficiaryCallService.updateBeneficiaryIDInCall(beneficiarycall.getBenCallID(), beneficiarycall.getBeneficiaryRegID()); + output.setResponse(startedCall.toString()); + }else { + output.setResponse("Update skipped : BeneficiaryRegID is null"); } - output.setResponse(startedCall.toString()); - logger.info("updateBeneficiaryIDInCall was called successfully"); } catch (Exception e) { logger.error("updateBeneficiaryIDInCall failed with error " + e.getMessage(), e);