Fix regression from #132

Closes #134
This commit is contained in:
jvyden 2022-02-02 13:31:44 -05:00
parent 5df6fbbb1c
commit b31522733c
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
3 changed files with 5 additions and 8 deletions

View file

@ -39,8 +39,7 @@ public class UsersPage : BaseLayout
if (this.PageNumber < 0 || this.PageNumber >= this.PageAmount) return this.Redirect($"/users/{Math.Clamp(this.PageNumber, 0, this.PageAmount - 1)}");
this.Users = await this.Database.Users.Where
(u => !u.Banned && u.Username.Contains(name))
this.Users = await this.Database.Users.Where(u => !u.Banned && u.Username.Contains(name))
.OrderByDescending(b => b.UserId)
.Skip(pageNumber * ServerStatics.PageSize)
.Take(ServerStatics.PageSize)