feat: new compliance options
This commit is contained in:
parent
ccf7eacfad
commit
f2080c32e9
23 changed files with 161 additions and 121 deletions
|
|
@ -1,12 +1,10 @@
|
|||
// const configManager = require('./config-manager')
|
||||
const ph = require('./plugin-helper')
|
||||
const argv = require('minimist')(process.argv.slice(2))
|
||||
|
||||
function sendMessage (settings, rec) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
// TODO new-admin: how to load mock here? Only on dev?
|
||||
// const pluginCode = configManager.unscoped(settings.config).sms
|
||||
const pluginCode = 'twilio'
|
||||
const pluginCode = argv.mockSms ? 'mock-sms' : 'twilio'
|
||||
const plugin = ph.load(ph.SMS, pluginCode)
|
||||
const account = settings.accounts[pluginCode]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue