Skip to content

Commit

Permalink
add :: now_count, week 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Apr 13, 2024
1 parent 1d1a3bf commit 4da7d97
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mindway.server.v2.domain.goal.util.impl;

import com.mindway.server.v2.domain.goal.entity.Goal;
import com.mindway.server.v2.domain.goal.entity.Week;
import com.mindway.server.v2.domain.goal.util.GoalConverter;
import com.mindway.server.v2.domain.user.entity.User;
import org.springframework.stereotype.Component;
Expand All @@ -15,6 +16,8 @@ public Goal toEntity(User user, String created_at, String ended_at, Integer goal
.started_at(LocalDate.parse(created_at))
.ended_at(LocalDate.parse(ended_at))
.goal_value(goal_count)
.now_count(0)
.week(new Week(0,0,0,0,0,0,0))
.user(user)
.build();
}
Expand Down

0 comments on commit 4da7d97

Please sign in to comment.