Skip to content

Commit

Permalink
Merge pull request #291 from Hous-Release/develop
Browse files Browse the repository at this point in the history
release 1.0.5
  • Loading branch information
hyejungg authored Dec 28, 2022
2 parents 7648be3 + 978222c commit 19b23aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'hous'
version = '1.0.4-SNAPSHOT'
version = '1.0.5-SNAPSHOT'
sourceCompatibility = '11'

configurations {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Hous- Release")
.description("Server API Docs")
.version("1.0.4")
.version("1.0.5")
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import lombok.RequiredArgsConstructor;

import java.time.LocalDate;
import java.util.List;
import java.util.HashSet;
import java.util.Set;

import static hous.server.domain.todo.QDone.done;

Expand All @@ -34,7 +35,14 @@ public boolean findTodayTodoCheckStatus(LocalDate today, Onboarding onboarding,

@Override
public OurTodoStatus findTodayOurTodoStatus(LocalDate today, Todo todo) {
List<Take> takes = todo.getTakes();
Set<Take> takes = new HashSet<>();
todo.getTakes().forEach(take -> {
take.getRedos().forEach(redo -> {
if (redo.getDayOfWeek().toString().equals(DateUtils.nowDayOfWeek(today))) {
takes.add(take);
}
});
});
int doneCnt = (int) takes.stream()
.map(take -> queryFactory.selectFrom(done)
.where(
Expand Down

0 comments on commit 19b23aa

Please sign in to comment.