Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix limit in credential query #72

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading