mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-13 08:41:27 +00:00
Fix hearted profiles being sorted in reverse order
This commit is contained in:
parent
b29120a482
commit
c9784cf8c9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue