diff --git a/src/modules/proposal/dto/proposal/user-project/ethic-vote.dto.ts b/src/modules/proposal/dto/proposal/user-project/ethic-vote.dto.ts index 562b92c..9c15512 100644 --- a/src/modules/proposal/dto/proposal/user-project/ethic-vote.dto.ts +++ b/src/modules/proposal/dto/proposal/user-project/ethic-vote.dto.ts @@ -1,5 +1,5 @@ import { Expose, Type } from 'class-transformer'; -import { IsBoolean, IsDate, IsOptional, MaxLength, ValidateIf, Equals } from 'class-validator'; +import { IsBoolean, IsDate, IsOptional, MaxLength, ValidateIf } from 'class-validator'; import { ProposalValidation } from 'src/modules/proposal/enums/porposal-validation.enum'; import { WithIdForObjectDto } from 'src/shared/dto/with-id-for-object.dto'; import { IsNotEmptyString } from 'src/shared/validators/is-not-empty-string.validator'; @@ -10,12 +10,6 @@ export class EthicVoteDto extends WithIdForObjectDto { @IsOptional({ groups: [ProposalValidation.IsDraft] }) isExisting: boolean; - @Expose() - @IsOptional({ groups: [ProposalValidation.IsDraft] }) - @ValidateIf((ethicVote: EthicVoteDto) => ethicVote.isExisting) - @Equals(true) - admitReputationOfAttachment: boolean; - @Expose() @MaxLength(10000) @IsNotEmptyString({ groups: [ProposalValidation.IsNotDraft] }) diff --git a/src/modules/proposal/schema/sub-schema/user-project/ethic-vote.schema.ts b/src/modules/proposal/schema/sub-schema/user-project/ethic-vote.schema.ts index 3a908f2..1a1bd3a 100644 --- a/src/modules/proposal/schema/sub-schema/user-project/ethic-vote.schema.ts +++ b/src/modules/proposal/schema/sub-schema/user-project/ethic-vote.schema.ts @@ -8,9 +8,6 @@ export class EthicVote { @Prop() isExisting: boolean; - @Prop() - admitReputationOfAttachment: boolean; - @Prop() ethicsCommittee: string;