Skip to content

Commit

Permalink
Merge pull request #1748 from ita-social-projects/feature/issue-1726
Browse files Browse the repository at this point in the history
added ToList() to ensure streetcodes are retrieved as a list
  • Loading branch information
sashapanasiuk5 authored Sep 14, 2024
2 parents c5d2b9c + 9f8fe5f commit 07728f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task<Result<IEnumerable<StreetcodeMainPageDTO>>> Handle(GetPageOfSt
predicate: sc => sc.Status == DAL.Enums.StreetcodeStatus.Published,
include: src => src.Include(item => item.Text).Include(item => item.Images).ThenInclude(x => x.ImageDetails),
descendingSortKeySelector: sc => sc.CreatedAt)
.Entities;
.Entities.ToList();

if (streetcodes is not null && streetcodes.Any())
{
Expand Down

0 comments on commit 07728f5

Please sign in to comment.