Skip to content

Commit f4c27b7

Browse files
committed
fix return
1 parent ba0063e commit f4c27b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const getAllLiveGateway = async (
6363
const fullfilled: string[] = [];
6464

6565
for (let index = 1; index < result.length; index++) {
66-
if (result[index].status === 'fulfilled') {
66+
if (result[index - 1].status === 'fulfilled') {
6767
fullfilled.push(finalUrl[index]);
6868
}
6969
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "public-ipfs-gateway",
33
"description": "Get Public IPFS gateway url easily",
44
"author": "codev911",
5-
"version": "1.1.4",
5+
"version": "1.1.5",
66
"main": "./dist/index.js",
77
"module": "./dist/index.mjs",
88
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)