fix: general fixes on date types and some typos

This commit is contained in:
Abdalhamid Alhamad
2025-01-05 10:38:19 +03:00
parent aefa866ae7
commit eca84b4e75
4 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ export class CustomerResponseDto {
nationalId!: string; nationalId!: string;
@ApiProperty() @ApiProperty()
nationaIdExpiry!: Date; nationalIdExpiry!: Date;
@ApiProperty() @ApiProperty()
countryOfResidence!: string; countryOfResidence!: string;
@ -66,7 +66,7 @@ export class CustomerResponseDto {
this.lastName = customer.lastName; this.lastName = customer.lastName;
this.dateOfBirth = customer.dateOfBirth; this.dateOfBirth = customer.dateOfBirth;
this.nationalId = customer.nationalId; this.nationalId = customer.nationalId;
this.nationaIdExpiry = customer.nationaIdExpiry; this.nationalIdExpiry = customer.nationalIdExpiry;
this.countryOfResidence = customer.countryOfResidence; this.countryOfResidence = customer.countryOfResidence;
this.sourceOfIncome = customer.sourceOfIncome; this.sourceOfIncome = customer.sourceOfIncome;
this.profession = customer.profession; this.profession = customer.profession;

View File

@ -38,7 +38,7 @@ export class Customer extends BaseEntity {
nationalId!: string; nationalId!: string;
@Column('date', { nullable: true, name: 'national_id_expiry' }) @Column('date', { nullable: true, name: 'national_id_expiry' })
nationaIdExpiry!: Date; nationalIdExpiry!: Date;
@Column('varchar', { length: 255, nullable: true, name: 'country_of_residence' }) @Column('varchar', { length: 255, nullable: true, name: 'country_of_residence' })
countryOfResidence!: string; countryOfResidence!: string;

View File

@ -24,7 +24,7 @@ export class SavingGoal extends BaseEntity {
@Column({ type: 'varchar', length: 255, name: 'description', nullable: true }) @Column({ type: 'varchar', length: 255, name: 'description', nullable: true })
description!: string; description!: string;
@Column({ type: 'date', name: 'due_date' }) @Column({ type: 'timestamp with time zone', name: 'due_date' })
dueDate!: Date; dueDate!: Date;
@Column({ @Column({

View File

@ -36,10 +36,10 @@ export class Task extends BaseEntity {
@Column({ type: 'varchar', name: 'task_frequency' }) @Column({ type: 'varchar', name: 'task_frequency' })
taskFrequency!: TaskFrequency; taskFrequency!: TaskFrequency;
@Column({ type: 'date', name: 'start_date' }) @Column({ type: 'timestamp with time zone', name: 'start_date' })
startDate!: Date; startDate!: Date;
@Column({ type: 'date', name: 'due_date' }) @Column({ type: 'timestamp with time zone', name: 'due_date' })
dueDate!: Date; dueDate!: Date;
@Column({ type: 'boolean', name: 'is_proof_required' }) @Column({ type: 'boolean', name: 'is_proof_required' })