Skip to content

Commit

Permalink
fix: return correct response for index extract error
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Jun 20, 2024
1 parent b2f4508 commit 67ef2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upload-api/src/index/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const add = async ({ capability }, context) => {
)

const idxRes = ShardedDAGIndex.extract(concat(chunks))
if (!idxRes.ok) return idxAllocRes
if (!idxRes.ok) return idxRes

// ensure indexed shards are allocated in the agent's space
const shardDigests = [...idxRes.ok.shards.keys()]
Expand Down

0 comments on commit 67ef2b0

Please sign in to comment.