update code for form get api
This commit is contained in:
@@ -94,7 +94,7 @@ public class FormDao {
|
|||||||
formRepository.delete(formEntity);
|
formRepository.delete(formEntity);
|
||||||
}
|
}
|
||||||
public List<FormResponseBean> getFormsByCallId(Long callId){
|
public List<FormResponseBean> getFormsByCallId(Long callId){
|
||||||
CallEntity callEntity=callService.getCallEntityById(callId);
|
CallEntity callEntity=callService.validateCall(callId);
|
||||||
if(callEntity== null){
|
if(callEntity== null){
|
||||||
throw new CustomValidationException(Status.VALIDATION_ERROR,
|
throw new CustomValidationException(Status.VALIDATION_ERROR,
|
||||||
Translator.toLocale(GepafinConstant.CALL_NOT_FOUND));
|
Translator.toLocale(GepafinConstant.CALL_NOT_FOUND));
|
||||||
|
|||||||
Reference in New Issue
Block a user