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 d8975b6..f779544 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -76,6 +76,8 @@ for ( Group group : (List) groupResult ) { editGroup = group; if (editGroup.getgId().equals(gId)) { + session.getTransaction().commit(); + session.close(); return editGroup; } }