We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1889ba8 commit 47c6e8fCopy full SHA for 47c6e8f
1 file changed
HwProj.APIGateway/HwProj.APIGateway.API/Filters/FilesCountLimiter.cs
@@ -17,7 +17,9 @@ public async Task<bool> CheckCountLimit(ProcessFilesDTO processFilesDto)
17
var existingStatuses = await contentServiceClient.GetFilesStatuses(processFilesDto.FilesScope);
18
if (!existingStatuses.Succeeded) return false;
19
20
- var existingIds = existingStatuses.Value.Where(f => f.Status == "ReadyToUse").Select(f => f.Id).ToList();
+ var existingIds = existingStatuses.Value
21
+ .Where(f => f.Status == "ReadyToUse" || f.Status == "Uploading" || f.Status == "DeletingError")
22
+ .Select(f => f.Id).ToList();
23
if (processFilesDto.DeletingFileIds.Any(id => !existingIds.Contains(id)))
24
return false;
25
0 commit comments