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 3a9afaa..9ee545d 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -57,7 +57,10 @@ session = SessionManager.getSession().getSession(); testGroup.addMember(uId); + int n = testGroup.getMembers().size(); + session.update(testGroup); + SessionManager.getInstance().closeSession(); return testGroup; }