Skip to content

Commit

Permalink
refactor: 응답값없는 API 함수 반환값 제거
Browse files Browse the repository at this point in the history
[#13]
  • Loading branch information
yunchaehyun committed Jan 18, 2024
1 parent 0676d02 commit 1e61aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/src/apis/quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<GetSharedAnswerResponse>(
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/apis/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<UserQuizStatus>(
Expand Down

0 comments on commit 1e61aff

Please sign in to comment.