Skip to content

Commit 803cf55

Browse files
committed
fix: bug of accounting deleted files in files limiter
1 parent 6c9613f commit 803cf55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HwProj.APIGateway/HwProj.APIGateway.API/Filters/FilesCountLimiter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public async Task<bool> CheckCountLimit(ProcessFilesDTO processFilesDto)
1717
var existingStatuses = await contentServiceClient.GetFilesStatuses(processFilesDto.FilesScope);
1818
if (!existingStatuses.Succeeded) return false;
1919

20-
var existingIds = existingStatuses.Value.Select(f => f.Id).ToList();
20+
var existingIds = existingStatuses.Value.Where(f => f.Status == "ReadyToUse").Select(f => f.Id).ToList();
2121
if (processFilesDto.DeletingFileIds.Any(id => !existingIds.Contains(id)))
2222
return false;
2323

0 commit comments

Comments
 (0)