Add missing ctx arg for CLI users create

This commit is contained in:
Clint Brown
2018-04-24 17:17:48 +10:00
parent 786c91c4ff
commit a444d98733
+3 -1
View File
@@ -287,8 +287,10 @@ async function createUser() {
const { email, username, password, role } = answers;
const ctx = Context.forSystem();
// Create the user.
const user = await UsersService.createLocalUser(email, password, username);
const user = await UsersService.createLocalUser(ctx, email, password, username);
// Set the role.
await UsersService.setRole(user.id, role);