From f9b9524fcedfb0884c78fe818379091950db7a3b Mon Sep 17 00:00:00 2001 From: Rodolfo Miranda Date: Thu, 3 Aug 2023 10:01:37 -0300 Subject: [PATCH] fix limit --- examples/integration-scripts/request-present.ts | 3 ++- src/keri/app/signify.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/integration-scripts/request-present.ts b/examples/integration-scripts/request-present.ts index 64943abf..295e356c 100644 --- a/examples/integration-scripts/request-present.ts +++ b/examples/integration-scripts/request-present.ts @@ -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") diff --git a/src/keri/app/signify.ts b/src/keri/app/signify.ts index c914a4d9..13f406ed 100644 --- a/src/keri/app/signify.ts +++ b/src/keri/app/signify.ts @@ -715,7 +715,7 @@ class Credentials { filter: filtr, sort: sort, skip: skip, - limt: limit + limit: limit } let method = 'POST'