Skip to content

Commit

Permalink
Chore: #149 MSW 변수 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Sep 24, 2024
1 parent cbe4d07 commit d636a57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mocks/services/taskServiceHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ const taskServiceHandler = [
const project = PROJECT_DUMMY.find((project) => project.projectId === Number(projectId));
if (!project) return new HttpResponse(null, { status: 404 });

const statues = STATUS_DUMMY.filter((status) => status.projectId === project.projectId);
if (statues.length === 0) return new HttpResponse(null, { status: 404 });
const statuses = STATUS_DUMMY.filter((status) => status.projectId === project.projectId);
if (statuses.length === 0) return new HttpResponse(null, { status: 404 });

const task = TASK_DUMMY.find((task) => task.taskId === Number(taskId));
if (!task) return new HttpResponse(null, { status: 404 });

const isIncludedTask = statues.map((status) => status.statusId).includes(task.statusId);
const isIncludedTask = statuses.map((status) => status.statusId).includes(task.statusId);
if (!isIncludedTask) return new HttpResponse(null, { status: 404 });

const isAlreadyAssigned = TASK_USER_DUMMY.find(
Expand Down

0 comments on commit d636a57

Please sign in to comment.