diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs index 32e86766d..890a2c9bc 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs @@ -745,7 +745,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc ImageSize = result.StudyList.Sum(t => t.SeriesList.Sum(s => s.InstanceList.Sum(i => i.FileSize))) + result.NoneDicomStudyList.Sum(t => t.FileList.Sum(s => s.FileSize)) ?? 0 }; - + await _trialImageDownloadRepository.AddAsync(preDownloadInfo, true); return ResponseOutput.Ok(result, preDownloadInfo.Id); } @@ -925,7 +925,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc ) ?? 0 }; - await _trialImageDownloadRepository.AddAsync(preDownloadInfo); + await _trialImageDownloadRepository.AddAsync(preDownloadInfo,true); return ResponseOutput.Ok(result, preDownloadInfo.Id); }