Skip to content

Commit

Permalink
fix: add a fallback value for the max number for retries to fetch mis…
Browse files Browse the repository at this point in the history
…sing history
  • Loading branch information
jackton1 committed Apr 18, 2024
1 parent 07c64e5 commit 01d66d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ export const getInputs = (): Inputs => {
}

if (fetchMissingHistoryMaxRetries) {
inputs.fetchMissingHistoryMaxRetries = parseInt(
fetchMissingHistoryMaxRetries,
10
// Fallback to at least 1 if the fetch_missing_history_max_retries is less than 1
inputs.fetchMissingHistoryMaxRetries = Math.max(
parseInt(fetchMissingHistoryMaxRetries, 10),
1
)
}

Expand Down

0 comments on commit 01d66d4

Please sign in to comment.