Skip to content

Commit

Permalink
CMC adapter bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krebernisak committed Jan 13, 2021
1 parent 29fcecb commit 7bcd64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coinmarketcap/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const price = (jobRunID, input, callback) => {

Requester.request(config)
.then((response) => {
const key = params.id || _keyForSlug(response.data, params.slug) || params.symbol
const key = params.id || _keyForSlug(response.data, params.slug || '') || params.symbol
const path = ['data', key, 'quote', convert, 'price']
response.data.result = Requester.validateResultNumber(response.data, path)
callback(response.status, Requester.success(jobRunID, response))
Expand Down

0 comments on commit 7bcd64a

Please sign in to comment.