Fix hearted profiles being sorted in reverse order

This commit is contained in:
Slendy 2023-05-31 21:25:35 -05:00
parent b29120a482
commit c9784cf8c9
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -254,7 +254,7 @@ public class ListController : ControllerBase
pageData.TotalElements = await this.database.HeartedProfiles.CountAsync(h => h.UserId == targetUserId);
List<GameUser> heartedProfiles = (await this.database.HeartedProfiles.Include(h => h.HeartedUser)
.OrderBy(h => h.HeartedProfileId)
.OrderByDescending(h => h.HeartedProfileId)
.Where(h => h.UserId == targetUserId)
.Select(h => h.HeartedUser)
.ApplyPagination(pageData)