Return proper dto
@@ -259,7 +259,7 @@ public class UserServiceImpl implements UserService {
if (!errorMessages.isEmpty()) {
throw new UserGoalNotSavedException(USER_GOAL_WHERE_NOT_SAVED + errorMessages.toString());
}
- return dto;
+ return modelMapper.map(user.getUserGoals(), new TypeToken<List<UserGoalDto>>(){}.getType());
}
/**
