From 1e61aff20a87123f9eb027ef5fd76af7970d19f6 Mon Sep 17 00:00:00 2001 From: CHAE Date: Thu, 18 Jan 2024 18:24:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9D=91=EB=8B=B5=EA=B0=92?= =?UTF-8?q?=EC=97=86=EB=8A=94=20API=20=ED=95=A8=EC=88=98=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=EA=B0=92=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#13] --- packages/frontend/src/apis/quiz.ts | 3 +-- packages/frontend/src/apis/session.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/apis/quiz.ts b/packages/frontend/src/apis/quiz.ts index fa15ddd..fddb2e6 100644 --- a/packages/frontend/src/apis/quiz.ts +++ b/packages/frontend/src/apis/quiz.ts @@ -33,8 +33,7 @@ export const quizAPI = { return data; }, resetQuizById: async (id: number) => { - const { data } = await instance.delete(`${API_PATH.QUIZZES}/${id}/command`); - return data; + await instance.delete(`${API_PATH.QUIZZES}/${id}/command`); }, getSharedAnswer: async (slug: string) => { const { data } = await instance.get( diff --git a/packages/frontend/src/apis/session.ts b/packages/frontend/src/apis/session.ts index dd099cc..9ba4704 100644 --- a/packages/frontend/src/apis/session.ts +++ b/packages/frontend/src/apis/session.ts @@ -5,8 +5,7 @@ import { instance } from "./base"; export const sessionAPI = { resetSession: async () => { - const { data } = await instance.delete(API_PATH.SESSION); - return data; + await instance.delete(API_PATH.SESSION); }, getUserQuizStatus: async () => { const { data } = await instance.get(