|
|
@ -58,8 +58,8 @@ async function minuteCheck() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (alarmTrigger === true) {
|
|
|
|
if (alarmTrigger === true) {
|
|
|
|
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!alarm.preset ? 'preset' : 'advanced'), Object.assign( !!alarm.preset
|
|
|
|
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!alarm.preset ? 'preset' : 'advanced'), Object.assign( !!alarm.preset
|
|
|
|
? { ...alarm.params } // backward compatibility
|
|
|
|
? { preset: alarm.preset }
|
|
|
|
: { preset: alarm.preset }
|
|
|
|
: { ...alarm.params } // backward compatibility
|
|
|
|
, { payload: alarm.payload }))
|
|
|
|
, { payload: alarm.payload }))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|