Skip to content

Commit

Permalink
fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
codev911 committed Oct 29, 2024
1 parent ba0063e commit f4c27b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const getAllLiveGateway = async (
const fullfilled: string[] = [];

for (let index = 1; index < result.length; index++) {
if (result[index].status === 'fulfilled') {
if (result[index - 1].status === 'fulfilled') {
fullfilled.push(finalUrl[index]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "public-ipfs-gateway",
"description": "Get Public IPFS gateway url easily",
"author": "codev911",
"version": "1.1.4",
"version": "1.1.5",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit f4c27b7

Please sign in to comment.