Skip to content

Commit

Permalink
Fix(Entities): Fix entities optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur-Poffo committed Feb 26, 2024
1 parent 9fbfaee commit e271382
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export class Instructor extends User<InstructorProps> {
const instructor = new Instructor(
{
...props,
profileImageKey: null,
bannerImageKey: null,
registeredAt: props.registeredAt ?? new Date()
},
id
Expand Down
2 changes: 0 additions & 2 deletions src/domain/course-management/enterprise/entities/student.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export class Student extends User<StudentProps> {
const student = new Student(
{
...props,
profileImageKey: null,
bannerImageKey: null,
registeredAt: props.registeredAt ?? new Date()
},
id
Expand Down

0 comments on commit e271382

Please sign in to comment.