Skip to content

Commit 2960c51

Browse files
authoredNov 24, 2021
Merge pull request #1510 from baegjae/fix-get-credentials
Fix bug when getting credentials on askar-profile
2 parents f52be0c + a2ed758 commit 2960c51

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
 

Diff for: ‎aries_cloudagent/indy/credx/holder.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,13 @@ async def get_credentials(self, start: int, count: int, wql: dict):
255255
result = []
256256

257257
try:
258-
rows = self._profile.store.scan(CATEGORY_CREDENTIAL, wql, start, count)
258+
rows = self._profile.store.scan(
259+
CATEGORY_CREDENTIAL,
260+
wql,
261+
start,
262+
count,
263+
self._profile.settings.get("wallet.askar_profile"),
264+
)
259265
async for row in rows:
260266
cred = Credential.load(row.raw_value)
261267
result.append(_make_cred_info(row.name, cred))
@@ -322,7 +328,11 @@ async def get_credentials_for_presentation_request_by_referent(
322328
tag_filter = {"$and": [tag_filter, extra_query]}
323329

324330
rows = self._profile.store.scan(
325-
CATEGORY_CREDENTIAL, tag_filter, start, count
331+
CATEGORY_CREDENTIAL,
332+
tag_filter,
333+
start,
334+
count,
335+
self._profile.settings.get("wallet.askar_profile"),
326336
)
327337
async for row in rows:
328338
if row.name in creds:

0 commit comments

Comments
 (0)