Skip to content

Commit

Permalink
upate
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Oct 10, 2024
1 parent 575aecf commit f6cc837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/events/ava-2024/map/character/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function Event() {
className='[&_.Mui-selected]:!bg-white [&_.Mui-selected]:!text-text-primary [&_.MuiPaginationItem-root:not(.Mui-selected)]:!text-text-quatenary'
page={page}
onChange={(e, p) => setPage(p)}
count={Math.ceil((data?.data?.data?.story_character_aggregate?.aggregate?.count || 0) / 10)}
count={Math.ceil((data?.data?.data?.story_character_aggregate?.aggregate?.count || 0) / 20)}
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/services/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const eventService = {
await privateAxios.post(`${getConfig().REST_API_URL}/story-event/submission/character`, payload),
getCharacters: async (userId, page, sort) =>
await privateAxios.get(
`${getConfig().REST_API_URL}/story-event/character?limit=10&offset=${(page - 1) * 10}&order_by=${sort}${
`${getConfig().REST_API_URL}/story-event/character?limit=10&offset=${(page - 1) * 20}&order_by=${sort}${
userId ? `&user_id=${userId}` : ``
}`
),
Expand Down

0 comments on commit f6cc837

Please sign in to comment.