Skip to content

Instantly share code, notes, and snippets.

@EdwardIII
Forked from uphotelagency/handle.ts
Last active April 23, 2020 16:54
Show Gist options
  • Save EdwardIII/f2c3323b36f068b172bb3664f663d312 to your computer and use it in GitHub Desktop.
Save EdwardIII/f2c3323b36f068b172bb3664f663d312 to your computer and use it in GitHub Desktop.
const result = await polly().handle(console.error)
.waitAndRetry(retryTimes).executeForPromise(async () => {
return axios.get(`${apiUrl}/booking/v1/offer-index`, requestConfig);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment