Skip to content

Commit

Permalink
merge epic/FE-32--search-page
Browse files Browse the repository at this point in the history
  • Loading branch information
imsoohyeok committed Aug 4, 2024
1 parent a2f3c21 commit 727c837
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/apis/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 727c837

Please sign in to comment.