From b64bc0f9585ea3cc85ef6bb33ba95d35aa7220f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=8A=B9=EC=A7=84?= Date: Sun, 14 Jan 2024 01:53:49 +0900 Subject: [PATCH] [HOTFIX] concurrent list access error --- .../java/com/twtw/backend/domain/group/entity/Group.java | 8 ++------ backend/src/main/resources/application-prod.yml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) 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