Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatting: #224 일정 수정 API 로직중 폼 데이터 변수명 수정
Browse files Browse the repository at this point in the history
Seok93 committed Oct 17, 2024
1 parent 701faa2 commit cfdaf5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mocks/services/taskServiceHandler.ts
Original file line number Diff line number Diff line change
@@ -318,7 +318,7 @@ const taskServiceHandler = [
const accessToken = request.headers.get('Authorization');
const projectId = Number(params.projectId);
const taskId = Number(params.taskId);
const taskInfoData = (await request.json()) as TaskUpdateForm;
const newTaskInfo = (await request.json()) as TaskUpdateForm;

// 유저 인증 확인
if (!accessToken) return new HttpResponse(null, { status: 401 });
@@ -337,7 +337,7 @@ const taskServiceHandler = [

// 일정 정보 수정
try {
updateTask(taskId, taskInfoData);
updateTask(taskId, newTaskInfo);
} catch (error) {
console.error((error as Error).message);
return new HttpResponse(null, { status: 500 });

0 comments on commit cfdaf5b

Please sign in to comment.