Merge pull request #115 from xpack-ai/feature/1.3-liujian

Fixed an issue where deletion failed when there were no users in the …
This commit is contained in:
Dot.L authored and GitHub committed 2026-01-08 11:21:57 +08:00
commit 51338373e7
1 file changed
+1
@@ -87,6 +87,7 @@ class ResourceGroupService:
raise ValueError("Resource group not found")
users = self.user_repo.update_resource_group_by_group_id(gid, migrate_id or "deny-all", commit=False)
if not users:
self.db.commit()
return True
for user in users: