From ad3cb04549c9349adda7eb4eca3fc2466f611d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Fri, 18 Jun 2021 17:13:35 +0100 Subject: [PATCH] fix: array deconstructing --- lib/notifier/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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`,