Skip to content

Commit

Permalink
added: targetDate in withdrawal model
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum-grit committed Oct 2, 2023
1 parent 6a225e9 commit 59c162b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/api/src/withdrawal/dto/create-withdrawal.dto.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApiProperty } from '@nestjs/swagger'
import { Currency, WithdrawStatus } from '@prisma/client'
import { Expose } from 'class-transformer'
import { IsEnum, IsNumber, IsString, IsUUID, IsOptional } from 'class-validator'
import { Expose, Type } from 'class-transformer'
import { IsEnum, IsNumber, IsString, IsUUID, IsOptional, IsDate } from 'class-validator'
export class CreateWithdrawalDto {
@ApiProperty({ enum: WithdrawStatus })
@Expose()
Expand Down Expand Up @@ -49,4 +49,11 @@ export class CreateWithdrawalDto {
@IsOptional()
@Expose()
approvedById?: string

@ApiProperty()
@Expose()
@IsOptional()
@IsDate()
@Type(() => Date)
targetDate?: Date | null
}

0 comments on commit 59c162b

Please sign in to comment.