core: fix domain group delete (#994)

This commit is contained in:
panda authored and GitHub committed 2025-06-10 19:44:01 +01:00
1 parent 7415d5b369
commit 7968a10d49
1 file changed
+1 -1
+1 -1
View File
@@ -434,7 +434,7 @@ export const DomainApi = {
}),
async (ctx, args) => {
if (!ctx.user.hasPerm(PERM.PERM_EDIT_DOMAIN)) throw new PermissionError(PERM.PERM_EDIT_DOMAIN);
if (args.uids) {
if (args.uids?.length) {
const res = await user.updateGroup(ctx.domain._id, args.name, args.uids);
return res.upsertedCount > 0;
}