Skip to content

Commit

Permalink
Fix #595 getAllCorpora not returning anything but an empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Jan 9, 2025
1 parent 2dee7b9 commit 835f461
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ IDataFileService dataFileService
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)]
[ProducesResponseType(typeof(void), StatusCodes.Status503ServiceUnavailable)]
public async Task<IEnumerable<CorpusDto>> GetAllAsync(CancellationToken cancellationToken)
public async Task<ActionResult<IEnumerable<CorpusDto>>> GetAllAsync(CancellationToken cancellationToken)
{
return (await _corpusService.GetAllAsync(Owner, cancellationToken)).Select(Map);
return Ok((await _corpusService.GetAllAsync(Owner, cancellationToken)).Select(Map));
}

/// <summary>
Expand Down

0 comments on commit 835f461

Please sign in to comment.