Skip to content

Commit ebe2f51

Browse files
Merge pull request #61 from bivekk51/patch-1
Update node-js.mdx to handle proper fetch, previous one was causing a…
2 parents 97d87ca + 72d378f commit ebe2f51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frameworks/node-js.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const pinata = new PinataSDK({
144144

145145
async function main() {
146146
try {
147-
const file = await pinata.gateways.get("bafkreiac3t35fklpiwqonav2vj4x2dh6x2zugkdu7dsh6zkaq5jr33lcwy")
147+
const file = await pinata.gateways.public.get("bafkreiac3t35fklpiwqonav2vj4x2dh6x2zugkdu7dsh6zkaq5jr33lcwy")
148148
console.log(file.data)
149149
} catch (error) {
150150
console.log(error);

0 commit comments

Comments
 (0)