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 Oct 24, 2023
1 parent eba7bcd commit 3c95d5f
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 3c95d5f

Please sign in to comment.