Skip to content

Commit

Permalink
fix: Fetching credentials for SDR
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Mar 19, 2020
1 parent 40041bb commit e91668e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/daf-cli/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const initializeDb = async () => {
type: 'sqlite',
database: defaultPath + 'database-v2.sqlite',
synchronize: true,
logging: false,
logging: process.env.DEBUG_DAF_DB ? true : false,
entities: [...Daf.Entities],
})
}
Expand Down
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) {
if (iss && iss.length > 0) {
where['issuer'] = In(iss)
}
if (sub) {
if (sub && iss.length > 0) {
where['subject'] = In(sub)
}

Expand Down

0 comments on commit e91668e

Please sign in to comment.