Skip to content

Commit

Permalink
Fix(record): api 코드 type 관련 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Sep 29, 2024
1 parent 3e92e8a commit c94d6bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/apis/challenge-record/challenge.record.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function postVerification(
id: number,
image: File,
content: string
): Promise<ChallengeVerificationData> {
): Promise<{ data: ChallengeVerificationData; status: number }> {
const formData = new FormData();
formData.append(
'body',
Expand All @@ -25,7 +25,8 @@ export async function postVerification(
formData
);
console.log('postVerification response: ', response.data);
return response.data;
// return response.data;
return { data: response.data, status: response.status };
}

// GET: /api/challenges/{challengeId}/record
Expand Down

0 comments on commit c94d6bb

Please sign in to comment.