Skip to content

Commit

Permalink
fix: Bug in findCredentialsByFields
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Mar 20, 2020
1 parent fd135c9 commit e9f263a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/daf-data-store/src/data-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export class DataStore {
claim_type: string
}) {
let where = {}
if (iss && iss.length > 0) {

if (iss?.length > 0) {
where['issuer'] = In(iss)
}
if (sub && iss.length > 0) {
if (sub?.length > 0) {
where['subject'] = In(sub)
}

Expand Down

0 comments on commit e9f263a

Please sign in to comment.