Skip to content

Commit

Permalink
fix : 생성시에 입력산 status 값으로 생성되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sunandrabbit committed Nov 9, 2024
1 parent 3cb790b commit 630265a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/team1/BE/seamless/entity/TaskEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/team1/BE/seamless/mapper/TaskMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 630265a

Please sign in to comment.