Skip to content

Commit

Permalink
fix retries type error
Browse files Browse the repository at this point in the history
  • Loading branch information
addy-pathania committed Mar 15, 2024
1 parent 1db0955 commit 708d867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ export class DictionaryServiceFactory {
By default it uses the `DefaultRetryStrategy` with exponential back-off factor of 2 and handles error codes 429,
502, 503, 504, 520, 521, 522, 523, 524, 'ECONNRESET', 'ETIMEDOUT' and 'EPROTO' . You can use this class or your own implementation of `RetryStrategy`.
*/
retries:
process.env.GRAPH_QL_SERVICE_RETRIES &&
parseInt(process.env.GRAPH_QL_SERVICE_RETRIES, 10),
retries: (process.env.GRAPH_QL_SERVICE_RETRIES &&
parseInt(process.env.GRAPH_QL_SERVICE_RETRIES, 10)) as number,
})
: new RestDictionaryService({
apiHost: config.sitecoreApiHost,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ export class LayoutServiceFactory {
By default it uses the `DefaultRetryStrategy` with exponential back-off factor of 2 and handles error codes 429,
502, 503, 504, 520, 521, 522, 523, 524, 'ECONNRESET', 'ETIMEDOUT' and 'EPROTO' . You can use this class or your own implementation of `RetryStrategy`.
*/
retries:
process.env.GRAPH_QL_SERVICE_RETRIES &&
parseInt(process.env.GRAPH_QL_SERVICE_RETRIES, 10),
retries: (process.env.GRAPH_QL_SERVICE_RETRIES &&
parseInt(process.env.GRAPH_QL_SERVICE_RETRIES, 10)) as number,
})
: new RestLayoutService({
apiHost: config.sitecoreApiHost,
Expand Down

0 comments on commit 708d867

Please sign in to comment.