From ee19865cf00a9cb254044bcf61aeb79f82a40853 Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Fri, 13 Jan 2023 16:27:21 +0300 Subject: [PATCH] fix 60180 --- products/ASC.Files/Server/Api/FilesController.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/products/ASC.Files/Server/Api/FilesController.cs b/products/ASC.Files/Server/Api/FilesController.cs index abffe4229a..be9e42548c 100644 --- a/products/ASC.Files/Server/Api/FilesController.cs +++ b/products/ASC.Files/Server/Api/FilesController.cs @@ -116,13 +116,16 @@ public abstract class FilesController : ApiControllerBase /// /// Operation result [HttpGet("file/{fileId}/checkconversion")] - public IAsyncEnumerable> CheckConversionAsync(T fileId, bool start) + public async IAsyncEnumerable> CheckConversionAsync(T fileId, bool start) { - return _filesControllerHelper.CheckConversionAsync(new CheckConversionRequestDto() + await foreach (var r in _filesControllerHelper.CheckConversionAsync(new CheckConversionRequestDto() { FileId = fileId, StartConvert = start - }); + })) + { + yield return r; + } } [HttpGet("file/{fileId}/presigneduri")]