fix(TS2564): add ! to horizon/metric/target in CreateGoalDto
This commit is contained in:
parent
7240fb5805
commit
80eb62bca7
1 changed files with 3 additions and 3 deletions
|
|
@ -7,9 +7,9 @@ import { db } from '../db/client';
|
||||||
import { goals } from '../db/schema';
|
import { goals } from '../db/schema';
|
||||||
|
|
||||||
class CreateGoalDto {
|
class CreateGoalDto {
|
||||||
@IsString() horizon: string;
|
@IsString() horizon!: string;
|
||||||
@IsString() metric: string;
|
@IsString() metric!: string;
|
||||||
@IsString() target: string;
|
@IsString() target!: string;
|
||||||
@IsOptional() @IsString() workspaceId?: string;
|
@IsOptional() @IsString() workspaceId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue