Skip to content

Commit

Permalink
fix: IssuanceDate is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Mar 18, 2020
1 parent e77eb03 commit 38edef6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/daf-core/src/entities/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export class Credential extends BaseEntity {
)
subject: Identity

@Column({ nullable: true })
issuanceDate?: Date
@Column()
issuanceDate: Date

@Column({ nullable: true })
expirationDate?: Date
Expand Down
4 changes: 2 additions & 2 deletions packages/daf-core/src/entities/presentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class Presentation extends BaseEntity {
)
audience: Identity

@Column({ nullable: true })
issuanceDate?: Date
@Column()
issuanceDate: Date

@Column({ nullable: true })
expirationDate?: Date
Expand Down

0 comments on commit 38edef6

Please sign in to comment.