fix: queryKey 중복 제거

This commit is contained in:
정기영 2024-08-08 09:42:05 +09:00
parent d9963e4b29
commit 9667eb319a
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
export function useFreeboards(lectureId, page = 0) {
return useSuspenseQuery({
queryKey: ['noticelist', lectureId, page],
queryKey: ['freeboardlist', lectureId, page],
queryFn: () => instance.get(`${API_URL}/board?lectureId=${lectureId}&category=freeboard&pageNo=${page}`),
});
}

View File

@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
export function useStudentQuizsetDetail(id) {
return useSuspenseQuery({
queryKey: ['quizset', id],
queryKey: ['studentQuizsetDetail', id],
queryFn: () => instance.get(`${API_URL}/quiz/student/${id}`),
});
}

View File

@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
export function useTeacherQuizsetDetail(id) {
return useSuspenseQuery({
queryKey: ['quizset', id],
queryKey: ['teacherQuizsetDetail', id],
queryFn: () => instance.get(`${API_URL}/quiz/teacher/${id}`),
});
}