diff --git a/lib/notifier/index.js b/lib/notifier/index.js index abdb8b81..4405a5ea 100644 --- a/lib/notifier/index.js +++ b/lib/notifier/index.js @@ -174,8 +174,7 @@ function complianceNotify (customer, deviceId, ...args) { .then(([settings, machineName]) => { const notifications = configManager.getGlobalNotifications(settings.config) - const action = args[0] - const period = args[1] + const [action, period] = args const msgCore = { BLOCKED: `was blocked`,