Fix banlist pagination offset being incorrect
Not sure what the point of the pagination variable is there, but we can just use this as a constant for now.
This commit is contained in:
parent
bef1c72187
commit
7d1fe66b99
@ -76,7 +76,7 @@ class BanlistController(
|
|||||||
.where(USERS.IS_BANNED.eq(true))
|
.where(USERS.IS_BANNED.eq(true))
|
||||||
.orderBy(USERS.APPROX_BAN_DATE.desc())
|
.orderBy(USERS.APPROX_BAN_DATE.desc())
|
||||||
.limit(MAX_BANLIST_ENTRIES_PER_PAGE)
|
.limit(MAX_BANLIST_ENTRIES_PER_PAGE)
|
||||||
.offset((request.page - 1) * 10)
|
.offset((request.page - 1) * MAX_BANLIST_ENTRIES_PER_PAGE)
|
||||||
.fetch()
|
.fetch()
|
||||||
.map {
|
.map {
|
||||||
BanlistEntry(
|
BanlistEntry(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user