From 8c2b2fb2764b219d3932ed862463c1060c8cb29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BAa?= Date: Tue, 4 Dec 2018 09:37:18 +0100 Subject: [PATCH] Unlink command on config --- config/commands.js | 13 +++++++++++++ config/commandsConfig.js | 9 +++++++++ 2 files changed, 22 insertions(+) diff --git a/config/commands.js b/config/commands.js index 76ba611..5e801fd 100644 --- a/config/commands.js +++ b/config/commands.js @@ -845,6 +845,19 @@ module.exports = { keyless: false, readOnly: true }, + unlink: { + group: function(resp) { + var total = 0; + for (var i = 0; i < resp.length; i++) { + total += (resp[i] || 0); + } + return total; + }, + multiKey: true, + interval: 1, + keyless: false, + readOnly: false + }, unsubscribe: { multiKey: false, interval: 0, diff --git a/config/commandsConfig.js b/config/commandsConfig.js index d857369..986f09a 100644 --- a/config/commandsConfig.js +++ b/config/commandsConfig.js @@ -22,5 +22,14 @@ module.exports = { } return total; } + }, + unlink: { + group: function(resp) { + var total = 0; + for (var i = 0; i < resp.length; i++) { + total += (resp[i] || 0); + } + return total; + } } };