mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix status on users created in cli
This commit is contained in:
@@ -8,7 +8,7 @@ export default async function rolesCreate({ name, admin }: any) {
|
||||
}
|
||||
|
||||
const service = new RolesService();
|
||||
const id = await service.create({ name, admin, status: 'active' });
|
||||
const id = await service.create({ name, admin });
|
||||
console.log(id);
|
||||
database.destroy();
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export default async function usersCreate({ email, password, role }: any) {
|
||||
}
|
||||
|
||||
const service = new UsersService();
|
||||
const id = await service.create({ email, password, role });
|
||||
const id = await service.create({ email, password, role, status: 'active' });
|
||||
console.log(id);
|
||||
database.destroy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user