Skip to content

Commit

Permalink
[HOTFIX] concurrent list access error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Jan 13, 2024
1 parent 4152c53 commit b64bc0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ public void inviteAll(final List<Member> friends) {
}

public List<GroupMember> 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) {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spring:
generate-ddl: true
show-sql: true
hibernate:
ddl-auto: create
ddl-auto: update
properties:
hibernate:
auto_quote_keyword: true
Expand Down

0 comments on commit b64bc0f

Please sign in to comment.