Skip to content

Commit

Permalink
Fix FindTitleAsync return type
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Jan 23, 2024
1 parent d3d7e1b commit 2184b53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public virtual Task<List<Page>> GetListOfHomePagesAsync(CancellationToken cancel
return GetListAsync(x => x.IsHomePage, cancellationToken: GetCancellationToken(cancellationToken));
}

public async Task<string> FindTitleAsync(Guid pageId, CancellationToken cancellationToken = default)
public async Task<string?> FindTitleAsync(Guid pageId, CancellationToken cancellationToken = default)
{
return await (await GetMongoQueryableAsync(cancellationToken)).Where(x => x.Id == pageId).Select(x => x.Title)
.FirstOrDefaultAsync(cancellationToken);
Expand Down

0 comments on commit 2184b53

Please sign in to comment.