Skip to content

Commit

Permalink
Merge pull request #72 from cardano-foundation/fix_limit
Browse files Browse the repository at this point in the history
Fix limit in credential query
  • Loading branch information
rodolfomiranda authored Aug 3, 2023
2 parents 13dc8c0 + f9b9524 commit a564a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/integration-scripts/request-present.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ async function run() {
await new Promise(resolve => setTimeout(resolve, 1000));
}

let creds3 = await client3.credentials().list('verifier')
let creds3 = await client3.credentials().list('verifier',{filter:{"-i": {"$eq": aid1.prefix}}}) // filter by issuer
assert.equal(creds3.length, 1)
assert.equal(creds3[0].sad.s, schemaSAID)
assert.equal(creds3[0].sad.i, aid1.prefix)
assert.equal(creds3[0].status.s, "0") // 0 = issued
assert.equal(creds3[0].sad.a.i, aid2.prefix) // verify that the issuee is the same as the presenter
console.log("Credential presented and received by verifier")


Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/signify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ class Credentials {
filter: filtr,
sort: sort,
skip: skip,
limt: limit
limit: limit
}
let method = 'POST'

Expand Down

0 comments on commit a564a37

Please sign in to comment.