From 4da7d977c40a277c8599860e4323d87ef47d773e Mon Sep 17 00:00:00 2001 From: Umjiseung <127853946+Umjiseung@users.noreply.github.com> Date: Sat, 13 Apr 2024 21:07:41 +0900 Subject: [PATCH] =?UTF-8?q?add=20::=20now=5Fcount,=20week=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/v2/domain/goal/util/impl/GoalConverterImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/mindway/server/v2/domain/goal/util/impl/GoalConverterImpl.java b/src/main/java/com/mindway/server/v2/domain/goal/util/impl/GoalConverterImpl.java index a6b0d42..38c80a7 100644 --- a/src/main/java/com/mindway/server/v2/domain/goal/util/impl/GoalConverterImpl.java +++ b/src/main/java/com/mindway/server/v2/domain/goal/util/impl/GoalConverterImpl.java @@ -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; @@ -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(); }