Skip to content

Commit

Permalink
Merge pull request #60 from Coaktion/fix/handle-request-error-zendesk
Browse files Browse the repository at this point in the history
fix: fix zendesk makeRequest on catch
  • Loading branch information
JoaoMacedo03 authored Nov 16, 2023
2 parents ba6adfb + 4e4a49c commit a7f9fa4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/code_quality.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/zendesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ZendeskClient

if (this.retryCondition(instanceError)) {
await sleep(this.retryDelay(payload.retryCount, instanceError));
this.makeRequest(payload);
return await this.makeRequest(payload);
} else {
throw instanceError.response;
}
Expand Down

0 comments on commit a7f9fa4

Please sign in to comment.