From a3cd07dfa2f98c8b0f7e5a9f545b390baed87e44 Mon Sep 17 00:00:00 2001 From: Erwin Gronek Date: Wed, 15 Jan 2025 09:46:27 +0100 Subject: [PATCH] [ZARS-703][ADD] remove ehtical votum checkbox (#34) --- .../proposal/dto/proposal/user-project/ethic-vote.dto.ts | 8 +------- .../schema/sub-schema/user-project/ethic-vote.schema.ts | 3 --- 2 files changed, 1 insertion(+), 10 deletions(-) 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;