From a444d98733ec1edfd1112a9cfa7a7d5828550485 Mon Sep 17 00:00:00 2001 From: Clint Brown Date: Tue, 24 Apr 2018 17:17:48 +1000 Subject: [PATCH 1/2] Add missing ctx arg for CLI users create --- bin/cli-users | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/cli-users b/bin/cli-users index cfcbcd13a..18da341bb 100755 --- a/bin/cli-users +++ b/bin/cli-users @@ -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); From f83d6246cb7cb355574b794b63e302105e06fcc3 Mon Sep 17 00:00:00 2001 From: Clint Brown Date: Tue, 24 Apr 2018 17:33:47 +1000 Subject: [PATCH 2/2] Fix lint --- bin/cli-users | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/cli-users b/bin/cli-users index 18da341bb..a01980a20 100755 --- a/bin/cli-users +++ b/bin/cli-users @@ -290,7 +290,12 @@ async function createUser() { const ctx = Context.forSystem(); // Create the user. - const user = await UsersService.createLocalUser(ctx, email, password, username); + const user = await UsersService.createLocalUser( + ctx, + email, + password, + username + ); // Set the role. await UsersService.setRole(user.id, role);