Skip to content

Commit 688066f

Browse files
committed
ApiGateway/Files: исправление для GetDownloadLink
1 parent 8ca6d88 commit 688066f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HwProj.APIGateway/HwProj.APIGateway.API/Controllers/FilesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public async Task<IActionResult> GetStatuses(ScopeDTO filesScope)
6262
public async Task<IActionResult> GetDownloadLink([FromQuery] long fileId)
6363
{
6464
var linkDto = await contentServiceClient.GetDownloadLinkAsync(fileId);
65-
if (linkDto.Succeeded) return BadRequest(linkDto.Errors);
65+
if (!linkDto.Succeeded) return BadRequest(linkDto.Errors);
6666

6767
var result = linkDto.Value;
6868
var userId = UserId;

0 commit comments

Comments
 (0)