Skip to content

Commit

Permalink
Merge branch 'feat/middleware-type-changes' of https://github.com/Pol…
Browse files Browse the repository at this point in the history
…ymathNetwork/polymesh-sdk into feat/middleware-type-changes
  • Loading branch information
VictorVicente committed Oct 20, 2020
2 parents 3f85518 + f97e66a commit a0d2275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Claims.ts
Expand Up @@ -132,7 +132,7 @@ export class Claims {
const result = await context.queryMiddleware<Ensured<Query, 'didsWithClaims'>>(
didsWithClaims({
dids: targets?.map(target => signerToString(target)),
scope: scope ? { type: ClaimScopeTypeEnum[scope.type], value: scope.value } : scope,
scope: scope ? { type: ClaimScopeTypeEnum[scope.type], value: scope.value } : undefined,
trustedClaimIssuers: trustedClaimIssuers?.map(trustedClaimIssuer =>
signerToString(trustedClaimIssuer)
),
Expand Down Expand Up @@ -259,7 +259,7 @@ export class Claims {
const result = await context.queryMiddleware<Ensured<Query, 'issuerDidsWithClaimsByTarget'>>(
issuerDidsWithClaimsByTarget({
target: did,
scope: scope ? { type: ClaimScopeTypeEnum[scope.type], value: scope.value } : scope,
scope: scope ? { type: ClaimScopeTypeEnum[scope.type], value: scope.value } : undefined,
trustedClaimIssuers: trustedClaimIssuers?.map(trustedClaimIssuer =>
signerToString(trustedClaimIssuer)
),
Expand Down

0 comments on commit a0d2275

Please sign in to comment.