Skip to content

Commit

Permalink
Fix proofHandles call on update
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbukowski committed Apr 15, 2020
1 parent 81794c4 commit 91b88ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 56,7 @@ async function executeAsync(yargs, argv) {

// make sure proof hasnt expired
if (!utils.hashIdExpired(PROOF_EXPIRE_MINUTES, proofId)) {
let proofHandles = [{ uri: targetGatewayUri, proof_id: proofId }]
let proofHandles = [{ uri: targetGatewayUri, proofId }]
await updateCmd.updateHashesByProofIdAsync(hashDb, proofHandles)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 52,7 @@ async function executeAsync(yargs, argv) {

// make sure proof hasnt expired
if (!utils.hashIdExpired(PROOF_EXPIRE_MINUTES, proofId)) {
let proofHandles = [{ uri: targetGatewayUri, proof_id: proofId }]
let proofHandles = [{ uri: targetGatewayUri, proofId }]
await updateCmd.updateHashesByProofIdAsync(hashDb, proofHandles)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 59,7 @@ async function executeAsync(yargs, argv) {
throw new Error('expired')
}

let proofHandles = [{ uri: targetGatewayUri, proof_id: proofId }]
let proofHandles = [{ uri: targetGatewayUri, proofId }]
let updateResults = await updateHashesByProofIdAsync(hashDb, proofHandles)

displayOutputResults(updateResults, output, quiet, json)
Expand Down
2 changes: 1 addition & 1 deletion lib/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 59,7 @@ async function executeAsync(yargs, argv) {

// make sure proof hasnt expired
if (!utils.hashIdExpired(PROOF_EXPIRE_MINUTES, proofId)) {
let proofHandles = [{ uri: targetGatewayUri, proof_id: proofId }]
let proofHandles = [{ uri: targetGatewayUri, proofId }]
await updateCmd.updateHashesByProofIdAsync(hashDb, proofHandles)
}

Expand Down

0 comments on commit 91b88ae

Please sign in to comment.