Skip to content

Commit

Permalink
fix: handle null pinnings as empty list (#955)
Browse files Browse the repository at this point in the history
* fix: handle null pinnings as empty list

* test: increase timeout
  • Loading branch information
Cafe137 authored Oct 3, 2024
1 parent a640272 commit 62496f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ export default async (): Promise<Config.InitialOptions> => {
testPathIgnorePatterns: ['/node_modules/'],

// Increase timeout since we have long running cryptographic functions
testTimeout: 4 * 60 * 1000,
testTimeout: 8 * 60 * 1000,
}
}
2 changes: 1 addition & 1 deletion src/modules/pinning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ export async function getAllPins(requestOptions: BeeRequestOptions): Promise<Ref
url: `${PINNING_ENDPOINT}`,
})

return response.data.references
return response.data.references || []
}

0 comments on commit 62496f7

Please sign in to comment.