From ccc1408c4b1da636babfac76d58d0ee64e1e8e41 Mon Sep 17 00:00:00 2001 From: Ruben Meyer <46384706+rxbnDE@users.noreply.github.com> Date: Sun, 24 Nov 2019 00:42:13 +0100 Subject: [PATCH] cli - alias for get -> ls --- bin/cli/cmds/user_management.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cli/cmds/user_management.js b/bin/cli/cmds/user_management.js index 24de386..33c011a 100644 --- a/bin/cli/cmds/user_management.js +++ b/bin/cli/cmds/user_management.js @@ -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]');