Updated code

This commit is contained in:
rajesh
2024-12-12 15:52:02 +05:30
parent 41a6c6fde0
commit 1747d76d7f
8 changed files with 34 additions and 32 deletions

View File

@@ -128,7 +128,7 @@ public class S3ReUploadMigrationService {
}
documentDao.deleteFileFromS3(document,callId,applicationId,amendmentId,evaluationId);
documentDao.deleteFileFromS3(document,callId,applicationId,amendmentId);
processDocuments++;
} catch (Exception e) {
@@ -219,10 +219,10 @@ public class S3ReUploadMigrationService {
Long callId;
if (sourceType.equals(DocumentSourceTypeEnum.CALL)) {
return s3ConfigBean.generateDocumentPath(sourceType, document.getSourceId(), 0L,0L,0L);
return s3ConfigBean.generateDocumentPath(sourceType, document.getSourceId(), 0L,0L);
} else {
callId = applicationRepository.findCallIdById(document.getSourceId());
return s3ConfigBean.generateDocumentPath(sourceType, callId, document.getSourceId(),0L,0L);
return s3ConfigBean.generateDocumentPath(sourceType, callId, document.getSourceId(),0L);
}
}