Skip to content

Commit

Permalink
fix: SDR findCredentialsByFields iss
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Dec 2, 2019
1 parent 8609019 commit 6838d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/daf-selective-disclosure/src/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const sdr = async (message: any, { sub }: { sub: string }, { dataStore }: Contex
if (payload.claims) {
for (const credentialRequest of payload.claims) {
const iss: any =
credentialRequest.iss !== undefined ? credentialRequest.iss.map((iss: any) => iss.did) : []
credentialRequest.iss !== undefined ? credentialRequest.iss.map((iss: any) => iss.did) : null
const credentials = await dataStore.findCredentialsByFields({
iss,
sub: subject ? [subject] : [],
Expand Down

0 comments on commit 6838d04

Please sign in to comment.