Skip to content

Commit

Permalink
Bugfix :: stripe refund post not working (ToolJet#3170)
Browse files Browse the repository at this point in the history
* testing refund issue with node version

* fixing stripe post refund bug

* content type updated

* changing error messages

* removing installation

* reverting lock file

* lock file reverted

* spacing

* reverting
  • Loading branch information
stepinfwd authored Jul 6, 2022
1 parent cee03a1 commit ce5a0b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/packages/stripe/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export default class StripeQueryService implements QueryService {
response = await got(url, {
method: operation,
headers: this.authHeader(apiKey),
json: bodyParams,
form: bodyParams,
searchParams: queryParams,
});
}

result = JSON.parse(response.body);
} catch (error) {
throw new QueryError('Query could not be completed', error.message, {});
throw new QueryError('Query could not be completed', error.response.body, {});
}

return {
Expand Down
2 changes: 1 addition & 1 deletion plugins/packages/stripe/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce5a0b7

Please sign in to comment.