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