Skip to content

Commit

Permalink
fix: purge claim without vp or cred status
Browse files Browse the repository at this point in the history
Co-authored-by: John Henderson <[email protected]>
  • Loading branch information
JGiter and jrhender authored Jun 12, 2023
1 parent e15a9b2 commit 0c548ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/purge-extraneous-claims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import { RoleClaim } from '../modules/claim/entities/roleClaim.entity';
const claims = await claimsRepository.find();
for (const claim of claims) {
if (
claim.vp.verifiableCredential.some(
!claim?.vp?.verifiableCredential.some(
(vc) =>
vc.credentialStatus &&
!vc.credentialStatus.statusListCredential.startsWith(
vc.credentialStatus.statusListCredential.startsWith(
STATUS_LIST_DOMAIN
)
)
Expand Down

0 comments on commit 0c548ed

Please sign in to comment.