fix: queryKey 중복 수정
This commit is contained in:
parent
9b9cdbf60c
commit
aab6ea4633
@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
|
||||
|
||||
export function useLectureEnroll(lectureId) {
|
||||
return useSuspenseQuery({
|
||||
queryKey: ['lecturelist', lectureId],
|
||||
queryKey: ['enroll', lectureId],
|
||||
queryFn: () => instance.get(`${API_URL}/registration/${lectureId}`),
|
||||
});
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
|
||||
|
||||
export function useLectureInfo(lectureId) {
|
||||
return useSuspenseQuery({
|
||||
queryKey: ['lecturelist', lectureId],
|
||||
queryKey: ['lectureInfo', lectureId],
|
||||
queryFn: () => instance.get(`${API_URL}/lecture/${lectureId}`),
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user