diff --git a/backend/src/main/java/com/twtw/backend/domain/group/entity/Group.java b/backend/src/main/java/com/twtw/backend/domain/group/entity/Group.java index d2b7056c..cbf3ba3c 100644 --- a/backend/src/main/java/com/twtw/backend/domain/group/entity/Group.java +++ b/backend/src/main/java/com/twtw/backend/domain/group/entity/Group.java @@ -74,12 +74,8 @@ public void inviteAll(final List friends) { } public List getGroupMembers() { - return this.groupMembers.stream().filter(this::isAcceptedMember).toList(); - } - - private boolean isAcceptedMember(final GroupMember groupMember) { - groupMember.checkExpire(); - return groupMember.isAccepted(); + checkExpireAll(); + return this.groupMembers.stream().filter(GroupMember::isAccepted).toList(); } private void addGroupMember(final GroupMember groupMember) { diff --git a/backend/src/main/resources/application-prod.yml b/backend/src/main/resources/application-prod.yml index 998173ad..f396cf7c 100644 --- a/backend/src/main/resources/application-prod.yml +++ b/backend/src/main/resources/application-prod.yml @@ -12,7 +12,7 @@ spring: generate-ddl: true show-sql: true hibernate: - ddl-auto: create + ddl-auto: update properties: hibernate: auto_quote_keyword: true