updated code for archive document

This commit is contained in:
harish
2024-12-19 19:10:21 +05:30
parent d9ba007ec0
commit 21b21b26f9
2 changed files with 8 additions and 2 deletions

View File

@@ -771,8 +771,9 @@ public class AppointmentDao {
log.info("Async document upload completed for documentId: {}", documentId);
}
});
return null;
// Return an immediate response indicating the process is in progress
throw new CustomValidationException(Status.SUCCESS, Translator.toLocale(GepafinConstant.DOCUMENT_UPLOADING_IN_PROGRESS));
// throw new CustomValidationException(Status.SUCCESS, Translator.toLocale(GepafinConstant.DOCUMENT_UPLOADING_IN_PROGRESS));
}
private void uploadDocumentToExternalSystemSync(Long documentId, UploadDocToExternalSystemRequest docToExternalSystemRequest) {