Skip to content

Commit

Permalink
fix: save AnonCredsCredentialRecord createdAt
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
  • Loading branch information
genaris committed Oct 8, 2023
1 parent a0458fe commit df182a5
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 df182a5

Please sign in to comment.