updated code

This commit is contained in:
harish
2024-09-03 19:28:05 +05:30

View File

@@ -92,9 +92,6 @@ public class FormDao {
}
public List<FormResponseBean> getFormsByCallId(Long callId){
List<FormEntity> formEntities=formRepository.findByCallId(callId);
if(formEntities.isEmpty()){
throw new ResourceNotFoundException(Status.NOT_FOUND, Translator.toLocale(GepafinConstant.FORM_NOT_FOUND_FOR_CALL_ID));
}
List<FormResponseBean> formResponseBeanList = formEntities.stream()
.map(req -> convertFormEntityToFormResponseBean(req))
.collect(Collectors.toList());