Merge branch 'master' into events

This commit is contained in:
undefined committed 2025-06-13 00:39:25 +08:00
commit 94c5517e50
20 files changed
+150 -39

No files matched your search

+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;
}