chore: server code formatting
This commit is contained in:
parent
aedabcbdee
commit
68517170e2
234 changed files with 9824 additions and 6195 deletions
|
|
@ -4,7 +4,7 @@ const _ = require('lodash/fp')
|
|||
const FormData = require('form-data')
|
||||
|
||||
const axiosConfig = {
|
||||
baseURL: 'https://api.sumsub.com'
|
||||
baseURL: 'https://api.sumsub.com',
|
||||
}
|
||||
|
||||
const getSigBuilder = (apiToken, secretKey) => config => {
|
||||
|
|
@ -25,10 +25,13 @@ const getSigBuilder = (apiToken, secretKey) => config => {
|
|||
return config
|
||||
}
|
||||
|
||||
const request = ((account, config) => {
|
||||
const request = (account, config) => {
|
||||
const instance = axios.create(axiosConfig)
|
||||
instance.interceptors.request.use(getSigBuilder(account.apiToken, account.secretKey), Promise.reject)
|
||||
instance.interceptors.request.use(
|
||||
getSigBuilder(account.apiToken, account.secretKey),
|
||||
Promise.reject,
|
||||
)
|
||||
return instance(config)
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue