Skip to content

Commit 38695df

Browse files
committed
refactor: body에 있던 overwrite값을 parameter로 이동
1 parent dd7c2d8 commit 38695df

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/pages/user/Apply/api/apply.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ export const overwriteApplicationForm = async (
3535
const applicationDto = toApplyRequest(formData, questionArray);
3636

3737
try {
38-
const overwriteResponse = await apiInstance.post(`/clubs/${clubId}/apply-submit`, {
39-
...applicationDto,
40-
overwrite: true,
41-
});
38+
const overwriteResponse = await apiInstance.post(
39+
`/clubs/${clubId}/apply-submit`,
40+
applicationDto,
41+
{ params: { overwrite: true } },
42+
);
4243
return overwriteResponse.data;
4344
} catch (error: unknown) {
4445
return handleAxiosError(error, '지원서 제출이 실패하였습니다.');

0 commit comments

Comments
 (0)