diff --git a/frontend/src/apis/apis.ts b/frontend/src/apis/apis.ts index 76287d9e6..e49a23a96 100644 --- a/frontend/src/apis/apis.ts +++ b/frontend/src/apis/apis.ts @@ -73,7 +73,7 @@ export const getRunnerPostDetail = (runnerPostId: number, isLogin: boolean) => { return request.get(`/posts/runner/${runnerPostId}`, isLogin); }; -export const getAlram = () => { +export const getNotification = () => { return request.get(`/notifications`, true); }; diff --git a/frontend/src/hooks/query/useNotification.ts b/frontend/src/hooks/query/useNotification.ts index 02932974c..7cff503f2 100644 --- a/frontend/src/hooks/query/useNotification.ts +++ b/frontend/src/hooks/query/useNotification.ts @@ -1,4 +1,4 @@ -import { getAlram } from '@/apis/apis'; +import { getNotification } from '@/apis/apis'; import { GetNotificationResponse } from '@/types/notification'; import { APIError } from '@/types/error'; import { useSuspenseQuery } from '@tanstack/react-query'; @@ -6,7 +6,7 @@ import { useSuspenseQuery } from '@tanstack/react-query'; export const useNotification = () => { const queryResult = useSuspenseQuery({ queryKey: ['notification'], - queryFn: () => getAlram(), + queryFn: getNotification, }); return {