Skip to content

Commit

Permalink
refactor: make read easier
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jun 6, 2024
1 parent 18a2c7f commit 13ccf42
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/upload-api/src/index/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ const assertAllocated = async (context, space, digest, errorName) => {
const publishIndexClaim = async (ctx, { content, index }) => {
const { invocationConfig, connection } = ctx.claimsService
const { issuer, audience, with: resource, proofs } = invocationConfig
const expiration = Infinity
const nb = { content, index }
const conf = { issuer, audience, with: resource, nb, expiration, proofs }
const res = await Assert.index.invoke(conf).execute(connection)
const res = await Assert.index.invoke({
issuer,
audience,
with: resource,
nb: { content, index },
expiration: Infinity,
proofs,
}).execute(connection)
return res.out
}

0 comments on commit 13ccf42

Please sign in to comment.