Skip to content

Commit

Permalink
fixed: making taxonomy created/updated at optional in dto as a select…
Browse files Browse the repository at this point in the history
… omits this
  • Loading branch information
tomgobich committed Dec 29, 2024
1 parent 18fe093 commit 8beeeed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dtos/taxonomy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export default class TaxonomyDto extends BaseModelDto {
this.description = taxonomy.description
this.pageTitle = taxonomy.pageTitle
this.metaDescription = taxonomy.metaDescription
this.createdAt = taxonomy.createdAt.toISO()!
this.updatedAt = taxonomy.updatedAt.toISO()!
this.createdAt = taxonomy.createdAt?.toISO()!
this.updatedAt = taxonomy.updatedAt?.toISO()!
this.owner = taxonomy.owner && new UserDto(taxonomy.owner)
this.asset = taxonomy.asset && new AssetDto(taxonomy.asset)
this.parent = taxonomy.parent && new TaxonomyDto(taxonomy.parent)
Expand Down

0 comments on commit 8beeeed

Please sign in to comment.