Skip to content

Commit

Permalink
[ZARS-703][ADD] remove ehtical votum checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
af-egr committed Jan 10, 2025
1 parent ea46a5e commit 6523997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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] })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ export class EthicVote {
@Prop()
isExisting: boolean;

@Prop()
admitReputationOfAttachment: boolean;

@Prop()
ethicsCommittee: string;

Expand Down

0 comments on commit 6523997

Please sign in to comment.