mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 13:45:40 +08:00
fixes for cli
This commit is contained in:
@@ -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
@@ -490,7 +490,7 @@ module.exports = class UsersService {
|
||||
* @return {Promise}
|
||||
*/
|
||||
static all() {
|
||||
UserModel.find();
|
||||
return UserModel.find();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user