fix(TS2564): add ! to horizon/metric/target in CreateGoalDto

This commit is contained in:
admin-valentin 2026-08-01 20:16:10 +00:00
parent 7240fb5805
commit 80eb62bca7

View file

@ -7,9 +7,9 @@ import { db } from '../db/client';
import { goals } from '../db/schema';
class CreateGoalDto {
@IsString() horizon: string;
@IsString() metric: string;
@IsString() target: string;
@IsString() horizon!: string;
@IsString() metric!: string;
@IsString() target!: string;
@IsOptional() @IsString() workspaceId?: string;
}