diff --git a/src/main/java/team1/BE/seamless/entity/TaskEntity.java b/src/main/java/team1/BE/seamless/entity/TaskEntity.java index b1f07a3f..b2f8a5d9 100644 --- a/src/main/java/team1/BE/seamless/entity/TaskEntity.java +++ b/src/main/java/team1/BE/seamless/entity/TaskEntity.java @@ -25,11 +25,12 @@ public TaskEntity( MemberEntity member, LocalDateTime startDate, LocalDateTime endDate, - Integer progress) { + Integer progress, + Status status) { this.name = name; this.description = description; this.progress = progress; - this.status = Status.PENDING; + this.status = status; this.priority = priority; this.isDeleted = false; this.projectEntity = project; diff --git a/src/main/java/team1/BE/seamless/mapper/TaskMapper.java b/src/main/java/team1/BE/seamless/mapper/TaskMapper.java index 699f8aa7..1eb07e82 100644 --- a/src/main/java/team1/BE/seamless/mapper/TaskMapper.java +++ b/src/main/java/team1/BE/seamless/mapper/TaskMapper.java @@ -23,7 +23,8 @@ public TaskEntity toEntity(ProjectEntity project, MemberEntity member, TaskCreat member, taskCreate.getStartDate(), taskCreate.getEndDate(), - taskCreate.getProgress()); + taskCreate.getProgress(), + taskCreate.getStatus()); } public TaskEntity toUpdate(TaskEntity task, TaskUpdate update) {