fix: array deconstructing
This commit is contained in:
parent
129e5555df
commit
ad3cb04549
1 changed files with 1 additions and 2 deletions
|
|
@ -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`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue