Fix status on users created in cli

This commit is contained in:
rijkvanzanten
2020-09-18 12:50:41 -04:00
parent 8fe3865a7f
commit cf6eddbecf
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -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();
}