fixed some minor fail

master
cheetah 2 years ago
parent f47f7e4704
commit bc0838ef83

@ -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 }))
} }
} }

Loading…
Cancel
Save