Skip to content

Commit

Permalink
fix(list-folders)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Nov 19, 2024
1 parent dd56088 commit 0855aa0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/arfs/arfsdao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ export class ArFSDAO extends ArFSDAOAnonymous {
const transactions = await this.gatewayApi.gqlRequest(gqlQuery);
const { edges } = transactions;
hasNextPage = transactions.pageInfo.hasNextPage;
const files: Promise<ArFSPrivateFile | null >[] = edges.map(async (edge: GQLEdgeInterface) => {
const files: Promise<ArFSPrivateFile | null>[] = edges.map(async (edge: GQLEdgeInterface) => {
try {
const { node } = edge;
cursor = edge.cursor;
Expand Down
1 change: 0 additions & 1 deletion src/arfs/arfsdao_anonymous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ export class ArFSDAOAnonymous extends ArFSDAOType {
const fileBuilder = ArFSPublicFileBuilder.fromArweaveNode(node, this.gatewayApi);
const file = await fileBuilder.build(node);
const cacheKey = { fileId: file.fileId, owner };
allFiles.push(file);
return this.caches.publicFileCache.put(cacheKey, Promise.resolve(file));
} catch (e) {
// If the file is broken, skip it
Expand Down

0 comments on commit 0855aa0

Please sign in to comment.