Skip to content

Commit 773a17b

Browse files
committed
fix(weavedrive): use fetch in lieu of arweave js client to make graphql calls
1 parent e821d36 commit 773a17b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extensions/weavedrive/src/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,10 @@ module.exports = function weaveDrive(mod, FS) {
564564
return values.pop()
565565
},
566566

567-
async queryHasResult(query) {
568-
const results = await mod.arweave.api.post('/graphql', query);
569-
const json = JSON.parse(results)
567+
async queryHasResult(query, variables) {
568+
const json = await this.gqlQuery(query, variables)
569+
.then((res) => res.json())
570+
570571
return json.data.transactions.edges.length > 0
571572
},
572573

0 commit comments

Comments
 (0)