Skip to content

Commit d320133

Browse files
committed
fix: 참가자 정보 조회 size 제한 에러 해결
1 parent 34ccbcb commit d320133

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/features/dashboard/hook/useParticipants.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import { ApiResponse } from '../../../shared/types/api/apiResponse';
55
import { AxiosError } from 'axios';
66
import { approveParticipants } from '../../../features/dashboard/api/participants';
77

8-
export const useParticipants = (
9-
tags: string = 'all',
10-
page: number = 0,
11-
size: number = 10
12-
) => {
8+
export const useParticipants = (tags: string = 'all', page: number = 0, size: number = 300) => {
139
const { id } = useParams();
1410
const eventId = Number(id);
1511

@@ -31,15 +27,13 @@ export const useParticipants = (
3127
};
3228

3329
export const useApproveParticipants = (orderId: number) => {
34-
3530
const queryClient = useQueryClient();
3631

3732
return useMutation<ApiResponse<string>, AxiosError, { orderId: number }>({
3833
mutationFn: () => approveParticipants({ orderId }),
3934
onSuccess: () => {
4035
queryClient.invalidateQueries({
41-
predicate: (query) =>
42-
Array.isArray(query.queryKey) && query.queryKey[0] === 'participants',
36+
predicate: query => Array.isArray(query.queryKey) && query.queryKey[0] === 'participants',
4337
});
4438
},
4539
});

0 commit comments

Comments
 (0)