Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Feb 29, 2024
1 parent 7eb5b3d commit c4449ef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/council/hooks/useMyPastVotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const useMyPastVotes = ({ order, perPage = 5 }: UseMyPastVotesProps) => {

const variables = {
where,
orderBy: [toQueryOrderByInput<CastVoteOrderByInput>(order)],
orderBy: toQueryOrderByInput<CastVoteOrderByInput>(order),
limit: perPage,
offset,
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/council/hooks/usePastElections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface UsePastElectionsProps {

export const usePastElections = ({ page = 1, order }: UsePastElectionsProps) => {
const variables = {
orderBy: [toQueryOrderByInput<ElectionRoundOrderByInput>(order)],
orderBy: toQueryOrderByInput<ElectionRoundOrderByInput>(order),
limit: ELECTION_PER_PAGE,
offset: (page - 1) * ELECTION_PER_PAGE,
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/forum/hooks/useForumCategoryThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useForumCategoryThreads = (
const { data: threadsData } = useGetForumThreadsQuery({
variables: {
where: where(filters, categoryId, isArchive),
orderBy: [ForumThreadOrderByInput.IsStickyDesc, toQueryOrderByInput<ForumThreadOrderByInput>(options.order)],
orderBy: [ForumThreadOrderByInput.IsStickyDesc, ...toQueryOrderByInput<ForumThreadOrderByInput>(options.order)],
...(!pagination
? { limit: 30 }
: {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/forum/hooks/useMyThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useMyThreads = ({ page, threadsPerPage = 5, order }: UseMyThreadsPr
},
limit: threadsPerPage,
offset: (page - 1) * threadsPerPage,
orderBy: [ForumThreadOrderByInput.IsStickyDesc, toQueryOrderByInput<ForumThreadOrderByInput>(order)],
orderBy: [ForumThreadOrderByInput.IsStickyDesc, ...toQueryOrderByInput<ForumThreadOrderByInput>(order)],
}
const { loading: loadingPosts, data: threadsData } = useGetForumThreadsQuery({ variables })
const { loading: loadingCount, data: countData } = useGetForumThreadsCountQuery({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const usePastWorkersPagination = ({
group: { id_eq: group_eq },
status_json: { isTypeOf_not: 'WorkerStatusActive' },
},
orderBy: [toQueryOrderByInput<WorkerOrderByInput>(order)],
orderBy: toQueryOrderByInput<WorkerOrderByInput>(order),
}

const { loading: loadingCount, data: countData } = useGetWorkersCountQuery({ variables })
Expand Down

0 comments on commit c4449ef

Please sign in to comment.