fixes for cli

This commit is contained in:
Wyatt Johnson
2017-01-24 13:01:56 -07:00
parent 3a59a785f8
commit eeaefd9656
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -89,6 +89,10 @@ function createUser(options) {
.then(() => {
console.log(`Added the admin ${result.role.trim()} to User ${user.id}.`);
util.shutdown();
})
.catch((err) => {
console.error(err);
util.shutdown();
});
} else {
util.shutdown();
+1 -1
View File
@@ -490,7 +490,7 @@ module.exports = class UsersService {
* @return {Promise}
*/
static all() {
UserModel.find();
return UserModel.find();
}
/**