fix: queryKey 중복 수정

This commit is contained in:
jhynsoo 2024-08-07 10:32:54 +09:00
parent 9b9cdbf60c
commit aab6ea4633
2 changed files with 2 additions and 2 deletions

View File

@ -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}`),
});
}

View File

@ -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}`),
});
}