Skip to content

Commit 5b68783

Browse files
committed
Ensure ProjectChangeRequest.summary is not empty
1 parent 4388a7d commit 5b68783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/project-change-request/dto/create-project-change-request.dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Field, InputType, ObjectType } from '@nestjs/graphql';
22
import { NonEmptyArray } from '@seedcompany/common';
33
import { Type } from 'class-transformer';
44
import { ValidateNested } from 'class-validator';
5-
import { ID, IdField, ListField } from '~/common';
5+
import { ID, IdField, ListField, NameField } from '~/common';
66
import { ProjectChangeRequestType } from './project-change-request-type.enum';
77
import { ProjectChangeRequest } from './project-change-request.dto';
88

@@ -16,7 +16,7 @@ export abstract class CreateProjectChangeRequest {
1616
@ListField(() => ProjectChangeRequestType, { empty: 'deny' })
1717
readonly types: NonEmptyArray<ProjectChangeRequestType>;
1818

19-
@Field()
19+
@NameField()
2020
readonly summary: string;
2121
}
2222

0 commit comments

Comments
 (0)