diff --git a/src/apis/queries.ts b/src/apis/queries.ts index 17d8bdb5..4bcb6463 100644 --- a/src/apis/queries.ts +++ b/src/apis/queries.ts @@ -60,37 +60,6 @@ const queries = createQueryKeyStore({ queryFn: () => getEpigrams(request), }), }, - // NOTE: Epigram 관련 query함수 - epigram: { - getEpigram: (request: EpigramRequestType) => ({ - queryKey: ['epigram', request.id, request], - queryFn: () => { - if (request.id === undefined) { - throw new Error('Epigram ID가 제공되지 않았습니다.'); - } - return getEpigram(request); - }, - enabled: request.id !== undefined, - }), - }, - epigramComment: { - getComments: (request: CommentRequestType) => ({ - queryKey: ['epigramComments', request], - queryFn: () => getEpigramComments(request), - }), - }, - emotion: { - getMonthlyEmotionLogs: (request: GetMonthlyEmotionLogsRequestType) => ({ - queryKey: ['getMonthlyEmotionLogs', request], - queryFn: () => getMonthlyEmotionLogs(request), - }), - }, - epigrams: { - getEpigrams: (request: GetEpigramsParamsType) => ({ - queryKey: ['getEpigrams', request], - queryFn: () => getEpigrams(request), - }), - }, }); export default queries;