Skip to content

Commit

Permalink
Add new line item fields [sc-33464] (#64)
Browse files Browse the repository at this point in the history
* Add new line item fields.
* Upgrade dependencies/linter.
  • Loading branch information
dina920 authored Nov 8, 2021
1 parent eb89928 commit 5a67f64
Show file tree
Hide file tree
Showing 8 changed files with 607 additions and 501 deletions.
4 changes: 2 additions & 2 deletions lib/chartmogul/util/retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function retryOnStatus (res) {
}

// ref: https://github.com/FGRibreau/node-request-retry/blob/master/strategies/NetworkError.js#L3:22
var RETRIABLE_ERRORS = [
const RETRIABLE_ERRORS = [
'ECONNRESET',
'ENOTFOUND',
'ESOCKETTIMEDOUT',
Expand All @@ -36,7 +36,7 @@ module.exports = function retryRequest (retries, options, cb) {
retries = 20; // default is around 15min
}

var operation = retry.operation({
const operation = retry.operation({
retries,
randomize: 0.5,
minTimeout: 500,
Expand Down
Loading

0 comments on commit 5a67f64

Please sign in to comment.