Merge branch 'develop' of https://github.com/Kitzanos/GEPAFIN-BE into user-management
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user