update code for form get api

This commit is contained in:
rajesh
2024-09-15 13:31:54 +05:30
parent df64fac626
commit dac7eb10cd

View File

@@ -94,7 +94,7 @@ public class FormDao {
formRepository.delete(formEntity);
}
public List<FormResponseBean> getFormsByCallId(Long callId){
CallEntity callEntity=callService.getCallEntityById(callId);
CallEntity callEntity=callService.validateCall(callId);
if(callEntity== null){
throw new CustomValidationException(Status.VALIDATION_ERROR,
Translator.toLocale(GepafinConstant.CALL_NOT_FOUND));