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