Skip to content

Commit

Permalink
fix IPFS promises
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Mar 20, 2023
1 parent 71a3f86 commit 2a671a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VC Verifier Changelog
WIP
---

- fix IPFS promises
- UI improvements

1.4.0 (2023-03-15)
Expand Down
2 changes: 1 addition & 1 deletion api/src/services/fetch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function fetchIPFS(IPFSUrl: string): Promise<object> {

var document;

await Promise.race(IPFS_GATEWAYS.map(async (gateway) => {
await Promise.any(IPFS_GATEWAYS.map(async (gateway) => {

return await fetch_jsonld(`https://${gateway}/ipfs/${IPFSUrl.split('ipfs://')[1]}`);

Expand Down

0 comments on commit 2a671a1

Please sign in to comment.