fixed some minor fail

This commit is contained in:
cheetah 2022-12-01 14:57:23 +01:00
parent f47f7e4704
commit bc0838ef83

View file

@ -58,8 +58,8 @@ async function minuteCheck() {
}
if (alarmTrigger === true) {
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 }))
}
}