mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-14 22:02:26 +00:00
Revert "Order users list by status then by user id desc"
This reverts commit 75ad64db40
.
This commit is contained in:
parent
a36a8390e3
commit
da5671863a
1 changed files with 2 additions and 3 deletions
|
@ -8,6 +8,7 @@ using LBPUnion.ProjectLighthouse.Pages.Layouts;
|
|||
using LBPUnion.ProjectLighthouse.Types;
|
||||
using LBPUnion.ProjectLighthouse.Types.Settings;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Pages;
|
||||
|
||||
|
@ -35,11 +36,9 @@ public class UsersPage : BaseLayout
|
|||
|
||||
this.Users = await this.Database.Users.Where
|
||||
(u => !u.Banned)
|
||||
.OrderByDescending(b => b.UserId)
|
||||
.Skip(pageNumber * ServerStatics.PageSize)
|
||||
.Take(ServerStatics.PageSize)
|
||||
.ToAsyncEnumerable()
|
||||
.OrderBy(u => u.Status)
|
||||
.ThenByDescending(u => u.UserId)
|
||||
.ToListAsync();
|
||||
|
||||
return this.Page();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue