mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-26 03:37:57 +00:00
fix: general fixes on date types and some typos
This commit is contained in:
@@ -26,7 +26,7 @@ export class CustomerResponseDto {
|
||||
nationalId!: string;
|
||||
|
||||
@ApiProperty()
|
||||
nationaIdExpiry!: Date;
|
||||
nationalIdExpiry!: Date;
|
||||
|
||||
@ApiProperty()
|
||||
countryOfResidence!: string;
|
||||
@@ -66,7 +66,7 @@ export class CustomerResponseDto {
|
||||
this.lastName = customer.lastName;
|
||||
this.dateOfBirth = customer.dateOfBirth;
|
||||
this.nationalId = customer.nationalId;
|
||||
this.nationaIdExpiry = customer.nationaIdExpiry;
|
||||
this.nationalIdExpiry = customer.nationalIdExpiry;
|
||||
this.countryOfResidence = customer.countryOfResidence;
|
||||
this.sourceOfIncome = customer.sourceOfIncome;
|
||||
this.profession = customer.profession;
|
||||
|
||||
@@ -38,7 +38,7 @@ export class Customer extends BaseEntity {
|
||||
nationalId!: string;
|
||||
|
||||
@Column('date', { nullable: true, name: 'national_id_expiry' })
|
||||
nationaIdExpiry!: Date;
|
||||
nationalIdExpiry!: Date;
|
||||
|
||||
@Column('varchar', { length: 255, nullable: true, name: 'country_of_residence' })
|
||||
countryOfResidence!: string;
|
||||
|
||||
Reference in New Issue
Block a user