Skip to content

Commit

Permalink
Use new decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
zkhin committed Aug 24, 2022
1 parent 349f80a commit 5f81efb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { ID, IdField } from '../../../../common';
import { Role } from '../../../authorization';
import { ChangesetIdField } from '../../../changeset';
import { ProjectMember } from './project-member.dto';

@InputType()
Expand All @@ -23,10 +24,7 @@ export class CreateProjectMember {

@InputType()
export abstract class CreateProjectMemberInput {
@IdField({
description: 'The change object to associate these engagement changes with',
nullable: true,
})
@ChangesetIdField()
readonly changeset?: ID;

@Field()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { ID, IdField } from '../../../../common';
import { Role } from '../../../authorization';
import { ChangesetIdField } from '../../../changeset';
import { ProjectMember } from './project-member.dto';

@InputType()
Expand All @@ -16,10 +17,7 @@ export abstract class UpdateProjectMember {

@InputType()
export abstract class UpdateProjectMemberInput {
@IdField({
description: 'The change object to associate these engagement changes with',
nullable: true,
})
@ChangesetIdField()
readonly changeset?: ID;

@Field()
Expand Down

0 comments on commit 5f81efb

Please sign in to comment.