Skip to content

Commit

Permalink
Await json before logging response
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikstrid authored Oct 6, 2023
1 parent f0b6233 commit b03ace5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chain/tezos/TezosNodeReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export namespace TezosNodeReader {
}
return response;
})
.then(response => {
const json: any = response.json();
.then(async response => {
const json: any = await response.json();
log.debug(`TezosNodeReader.performGetRequest response: ${json} for ${command} on ${server}`);
return json;
});
Expand Down

0 comments on commit b03ace5

Please sign in to comment.