chore: server code formatting
This commit is contained in:
parent
aedabcbdee
commit
68517170e2
234 changed files with 9824 additions and 6195 deletions
|
|
@ -1,6 +1,3 @@
|
|||
const path = require('path')
|
||||
const fs = require('fs')
|
||||
|
||||
const _ = require('lodash/fp')
|
||||
|
||||
const pluginCodes = {
|
||||
|
|
@ -12,12 +9,12 @@ const pluginCodes = {
|
|||
SMS: 'sms',
|
||||
EMAIL: 'email',
|
||||
ZERO_CONF: 'zero-conf',
|
||||
COMPLIANCE: 'compliance'
|
||||
COMPLIANCE: 'compliance',
|
||||
}
|
||||
|
||||
module.exports = _.assign({load}, pluginCodes)
|
||||
module.exports = _.assign({ load }, pluginCodes)
|
||||
|
||||
function load (type, pluginCode) {
|
||||
function load(type, pluginCode) {
|
||||
if (!_.includes(type, _.values(pluginCodes))) {
|
||||
throw new Error(`Unallowed plugin type: ${type}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue