Merge branch 'develop' of https://github.com/Kitzanos/GEPAFIN-BE into user-management

This commit is contained in:
rajesh
2024-08-22 17:25:03 +05:30
9 changed files with 188 additions and 8 deletions

View File

@@ -121,7 +121,7 @@ public class CallDao {
validateDocumentEntity(documentReq.getId(),documentReq.getFileName());
DocumentEntity documentEntity = documentRepository.findById(documentReq.getId());
if(documentEntity==null){
throw new ResourceNotFoundException(Status.VALIDATION_ERROR,GepafinConstant.DOCUMENT_NOT_FOUND);
throw new ResourceNotFoundException(Status.VALIDATION_ERROR,Translator.toLocale(GepafinConstant.DOCUMENT_NOT_FOUND));
}
documentEntity.setFileName(documentReq.getFileName());
documentEntity.setFilePath(documentReq.getUrl());