updated code
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user