order-fix
Some checks failed
deploy / test (push) Failing after 1m11s

This commit is contained in:
Untone 2023-12-28 01:01:42 +03:00
parent 6c40415774
commit 7be0f9e9ef

View File

@ -51,11 +51,11 @@ export const AllAuthorsView = (props: Props) => {
}) })
const loadMoreByShouts = async () => { const loadMoreByShouts = async () => {
await loadAuthors({ by: { stat: 'shouts' }, limit: PAGE_SIZE, offset: offsetByShouts() }) await loadAuthors({ by: { order: 'shouts_stat' }, limit: PAGE_SIZE, offset: offsetByShouts() })
setOffsetByShouts((o) => o + PAGE_SIZE) setOffsetByShouts((o) => o + PAGE_SIZE)
} }
const loadMoreByFollowers = async () => { const loadMoreByFollowers = async () => {
await loadAuthors({ by: { stat: 'followers' }, limit: PAGE_SIZE, offset: offsetByFollowers() }) await loadAuthors({ by: { order: 'followers_stat' }, limit: PAGE_SIZE, offset: offsetByFollowers() })
setOffsetByFollowers((o) => o + PAGE_SIZE) setOffsetByFollowers((o) => o + PAGE_SIZE)
} }