fix(typing): removed validation on ExpenseDto
This commit is contained in:
parent
99cb5da69d
commit
e43cb489cf
|
|
@ -1,15 +1,14 @@
|
|||
import { IsBoolean, IsInt, IsOptional, IsString, MaxLength } from "class-validator";
|
||||
|
||||
export class ExpenseDto {
|
||||
@IsInt() @IsOptional() id: number;
|
||||
@IsInt() type!: string;
|
||||
@IsInt() timesheet_id!: number;
|
||||
@IsInt() @IsOptional() attachment?: number;
|
||||
|
||||
@IsString() date!: string;
|
||||
@IsInt() @IsOptional() amount?: number;
|
||||
@IsInt() @IsOptional() mileage?: number;
|
||||
@IsString() @MaxLength(280) comment!: string;
|
||||
@IsBoolean() is_approved!: boolean;
|
||||
@IsString() @MaxLength(280) @IsOptional() supervisor_comment?: string
|
||||
id: number;
|
||||
type!: string;
|
||||
timesheet_id!: number;
|
||||
attachment?: number;
|
||||
date!: string;
|
||||
amount?: number;
|
||||
mileage?: number;
|
||||
comment!: string;
|
||||
is_approved!: boolean;
|
||||
supervisor_comment?: string
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user