We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9613f commit 803cf55Copy full SHA for 803cf55
1 file changed
HwProj.APIGateway/HwProj.APIGateway.API/Filters/FilesCountLimiter.cs
@@ -17,7 +17,7 @@ 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.Select(f => f.Id).ToList();
+ var existingIds = existingStatuses.Value.Where(f => f.Status == "ReadyToUse").Select(f => f.Id).ToList();
21
if (processFilesDto.DeletingFileIds.Any(id => !existingIds.Contains(id)))
22
return false;
23
0 commit comments