1
0
Fork 0

cli - alias for get -> ls

This commit is contained in:
Ruben Meyer 2019-11-24 00:42:13 +01:00
parent 538e7b0a60
commit ccc1408c4b
1 changed files with 2 additions and 2 deletions

View File

@ -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]');