fix(typing): removed validation on ExpenseDto

This commit is contained in:
Matthieu Haineault 2025-11-17 15:05:32 -05:00
parent 99cb5da69d
commit e43cb489cf

View File

@ -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
}