mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix cli role name attr
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getSchema } from '../../../utils/get-schema';
|
||||
|
||||
export default async function rolesCreate({ name, admin }: { name: string; admin: boolean }): Promise<void> {
|
||||
export default async function rolesCreate({ role: name, admin }: { role: string; admin: boolean }): Promise<void> {
|
||||
const { default: database } = require('../../../database/index');
|
||||
const { RolesService } = require('../../../services/roles');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user