updated code for amendment api

This commit is contained in:
harish
2024-11-24 20:14:09 +05:30
parent 905a83698f
commit ac6c4ba0b0
8 changed files with 481 additions and 311 deletions

View File

@@ -118,7 +118,7 @@ public class DocumentDao {
public DocumentEntity validateDocument(Long id) {
return documentRepository.findById(id).orElseThrow(() -> new ResourceNotFoundException(Status.NOT_FOUND,
return documentRepository.findByIdAndNotDeleted(id).orElseThrow(() -> new ResourceNotFoundException(Status.NOT_FOUND,
Translator.toLocale(GepafinConstant.DOCUMENT_NOT_FOUND)));
}