diff --git a/src/main/java/com/example/cosmos_serversb/models/Groups.java b/src/main/java/com/example/cosmos_serversb/models/Groups.java index db5d627..eb3a1ff 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -139,10 +139,9 @@ } //とりあえず作成。あとでaddMember()と統合させる。 - public static void addMemberWhenCreateGroup(Group group, String uId){ + public static void addMemberWhenCreateGroup(Group editGroup, String uId){ Session session = SessionManager.getInstance().getSession(); // Group editGroup = session.load(Group.class, "gId");//取得できない - Group editGroup = group; if(editGroup != null) { editGroup.addMember(uId); // int n = testGroup.getMembers().size();