fix: array deconstructing

This commit is contained in:
Sérgio Salgado 2021-06-18 17:13:35 +01:00 committed by Josh Harvey
parent 129e5555df
commit ad3cb04549

View file

@ -174,8 +174,7 @@ function complianceNotify (customer, deviceId, ...args) {
.then(([settings, machineName]) => { .then(([settings, machineName]) => {
const notifications = configManager.getGlobalNotifications(settings.config) const notifications = configManager.getGlobalNotifications(settings.config)
const action = args[0] const [action, period] = args
const period = args[1]
const msgCore = { const msgCore = {
BLOCKED: `was blocked`, BLOCKED: `was blocked`,