Changed description for call api

This commit is contained in:
harish
2024-08-22 16:56:44 +05:30
parent 7c169d3f42
commit 6fc8ad991d
2 changed files with 2 additions and 2 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());