Skip to content

Commit

Permalink
fix: DataStoreORM saving claims
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored and mirceanis committed Sep 7, 2020
1 parent f221ec4 commit 281b493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/daf-typeorm/src/entities/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const createCredentialEntity = (vc: VerifiableCredential): Credential =>
if (type !== 'id') {
const isObj = typeof value === 'function' || (typeof value === 'object' && !!value)
const claim = new Claim()
claim.hash = blake2bHex(JSON.stringify(vc.raw) + type)
claim.hash = blake2bHex(JSON.stringify(vc) + type)
claim.type = type
claim.value = isObj ? JSON.stringify(value) : value
claim.isObj = isObj
Expand Down

0 comments on commit 281b493

Please sign in to comment.