Skip to content

Commit

Permalink
fix: fix JSON parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Nov 27, 2023
1 parent 9c81d27 commit 87eba9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async function waitForOperation({
headers: { Authorization: `Bearer ${accessToken}` },
});

const status = /** @type OperationStatus */ JSON.parse(await res.json());
const status = /** @type OperationStatus */ await res.json();
if (status.status === 'Failed') {
console.log(status);
throw new Error(
Expand Down

0 comments on commit 87eba9f

Please sign in to comment.