format for latest standard
This commit is contained in:
parent
4108efd9c7
commit
c2af183911
77 changed files with 1697 additions and 1693 deletions
12
lib/sms.js
12
lib/sms.js
|
|
@ -3,13 +3,13 @@ const ph = require('./plugin-helper')
|
|||
|
||||
function sendMessage (settings, rec) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
const pluginCode = configManager.unscoped(settings.config).sms
|
||||
const plugin = ph.load(ph.SMS, pluginCode)
|
||||
const account = settings.accounts[pluginCode]
|
||||
.then(() => {
|
||||
const pluginCode = configManager.unscoped(settings.config).sms
|
||||
const plugin = ph.load(ph.SMS, pluginCode)
|
||||
const account = settings.accounts[pluginCode]
|
||||
|
||||
return plugin.sendMessage(account, rec)
|
||||
})
|
||||
return plugin.sendMessage(account, rec)
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {sendMessage}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue