Skip to content

Commit

Permalink
fix(activeApps): respond sorted list of Apps (#1132)
Browse files Browse the repository at this point in the history
Ref: #1131
  • Loading branch information
tfjanjua authored Nov 14, 2024
1 parent a8eda72 commit 3a07d78
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public IAsyncEnumerable<ActiveAppData> GetAllActiveAppsAsync(string? languageSho
dbContext.Offers.AsNoTracking()
.AsSplitQuery()
.Where(offer => offer.DateReleased.HasValue && offer.DateReleased <= DateTime.UtcNow && offer.OfferTypeId == OfferTypeId.APP && offer.OfferStatusId == OfferStatusId.ACTIVE)
.OrderByDescending(x => x.DateReleased)
.Select(a => new ActiveAppData(
a.Id,
a.Name,
Expand Down

0 comments on commit 3a07d78

Please sign in to comment.