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