cli - alias for get -> ls
This commit is contained in:
parent
538e7b0a60
commit
ccc1408c4b
@ -67,7 +67,7 @@ module.exports = {
|
||||
cb();
|
||||
}
|
||||
// query users
|
||||
} else if(action === 'get') {
|
||||
} else if(action === 'get' || action === 'ls') {
|
||||
// wildcard catch-all
|
||||
if(profile.user === '*') {
|
||||
global['modules'].database.getUsers((err, rep) => {
|
||||
@ -138,7 +138,7 @@ module.exports = {
|
||||
} else {
|
||||
global['logs'].warn("User with id "+String(rep[0]._id)+" doesn't exist.");
|
||||
}
|
||||
|
||||
|
||||
// query error
|
||||
if(errUpd) {
|
||||
global['logs'].error('$ user update '+profile.user+' '+property+' '+param+' [on update]');
|
||||
|
Loading…
x
Reference in New Issue
Block a user