Skip to content

Commit

Permalink
fix: add type validation for sprint entity
Browse files Browse the repository at this point in the history
  • Loading branch information
GloireMutaliko21 committed Oct 22, 2024
1 parent e3c2753 commit 3803358
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { JoinColumn } from 'typeorm';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsDate, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';
import { Type } from 'class-transformer';
import { isMySQL, isPostgres } from '@gauzy/config';
import {
ID,
Expand Down Expand Up @@ -56,12 +57,14 @@ export class OrganizationSprint extends TenantOrganizationBaseEntity implements
@ApiPropertyOptional({ type: () => Date })
@IsDate()
@IsOptional()
@Type(() => Date)
@MultiORMColumn({ nullable: true })
startDate?: Date;

@ApiPropertyOptional({ type: () => Date })
@IsDate()
@IsOptional()
@Type(() => Date)
@MultiORMColumn({ nullable: true })
endDate?: Date;

Expand Down

0 comments on commit 3803358

Please sign in to comment.