From bc0838ef836440b47cd36e9784476ce37f48d046 Mon Sep 17 00:00:00 2001 From: cheetah Date: Thu, 1 Dec 2022 14:57:23 +0100 Subject: [PATCH] fixed some minor fail --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 62bea5a..4442430 100644 --- a/index.js +++ b/index.js @@ -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 })) } }