diff --git a/src/commands/role/assign.ts b/src/commands/role/assign.ts index 492ea92..b10f041 100644 --- a/src/commands/role/assign.ts +++ b/src/commands/role/assign.ts @@ -61,7 +61,6 @@ export function buildRoleAssignCommand(): Command { } const c = await JnpfClient.fromToken() await initRoleRelationWebapi(c) - const userIds = opts.userIds.split(',').map((s) => s.trim()).filter(Boolean) const fn = opts.action === 'add' ? loadRoleRelation.addRoles : loadRoleRelation.removeRoles const r = (await fn({ roleId: opts.roleId, userIds })) as { code?: number; msg?: string } if (r.code !== 200) {