From 36d5fa3af084cc6cac680e27fc3999a1a88f0cee Mon Sep 17 00:00:00 2001 From: gyeongza Date: Tue, 10 Oct 2023 11:04:41 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=BD=9C=EB=B0=B1=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20=EB=84=A4=EC=9D=B4?= =?UTF-8?q?=EB=B0=8D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/apis/apis.ts | 2 +- frontend/src/hooks/query/useNotification.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {