Skip to content

Commit

Permalink
fix(migration): hide migration
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Feb 12, 2024
1 parent 30237f2 commit d833a91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 106 deletions.

This file was deleted.

12 changes: 12 additions & 0 deletions packages/backend/src/usagers/dto/entretien.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,16 @@ export class EntretienDto implements Partial<UsagerEntretien> {
@IsOptional()
@IsIn(Object.keys(ENTRETIEN_SITUATION_PRO))
public situationPro!: UsagerEntretienSituationPro;

@ApiProperty({
type: String,
required: false,
})
@IsOptional()
@IsString()
@StripTagsTransform()
@Transform(({ value, obj }: { value: string; obj: EntretienDto }) =>
obj.situationPro === "AUTRE" ? value : null
)
public situationProDetail!: UsagerEntretienSituationPro;
}

0 comments on commit d833a91

Please sign in to comment.