committed by
GitHub
parent
c7675708de
commit
1f6c68df9c
@ -69,15 +69,6 @@ function buildMlGetInfluencers (opts) {
|
||||
options = {}
|
||||
}
|
||||
|
||||
// promises support
|
||||
if (callback == null) {
|
||||
return new Promise((resolve, reject) => {
|
||||
mlGetInfluencers(params, options, (err, body) => {
|
||||
err ? reject(err) : resolve(body)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: job_id or jobId')
|
||||
|
||||
Reference in New Issue
Block a user