fixed url call

master
cheetah 2 years ago
parent fc9c6d4da2
commit d551a56403

@ -65,7 +65,7 @@ for (let deliveryModeIndex in config.deliveryModes) {
const deliveryModeData = config.deliveryModes[ deliveryModeIndex ] const deliveryModeData = config.deliveryModes[ deliveryModeIndex ]
let msgId = ( let msgId = (
await axios.post(config.pager.url, Object.assign( !!deliveryModeData.preset await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!deliveryModeData.preset ? 'preset' : 'advanced'), Object.assign( !!deliveryModeData.preset
? { ...deliveryModeData.params } // backward compatibility ? { ...deliveryModeData.params } // backward compatibility
: { preset: deliveryModeData.preset } : { preset: deliveryModeData.preset }
, { payload: origText })) , { payload: origText }))

Loading…
Cancel
Save