Skip to content

Commit

Permalink
fix: save AnonCredsCredentialRecord createdAt (openwallet-foundation#…
Browse files Browse the repository at this point in the history
…1603)

Signed-off-by: Ariel Gentile <gentilester@gmail.com>
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
  • Loading branch information
genaris authored and auer-martin committed Nov 15, 2023
1 parent 54cf61c commit 76af9e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { BaseRecord, utils } from '@aries-framework/core'

export interface AnonCredsCredentialRecordProps {
id?: string
createdAt?: Date
credential: AnonCredsCredential
credentialId: string
credentialRevocationId?: string
Expand Down Expand Up @@ -60,6 +61,7 @@ export class AnonCredsCredentialRecord extends BaseRecord<

if (props) {
this.id = props.id ?? utils.uuid()
this.createdAt = props.createdAt ?? new Date()
this.credentialId = props.credentialId
this.credential = props.credential
this.credentialRevocationId = props.credentialRevocationId
Expand Down

0 comments on commit 76af9e1

Please sign in to comment.