From 0f5939b521c8c63aaef6072da900e51b240e3cab Mon Sep 17 00:00:00 2001 From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com> Date: Thu, 11 Feb 2021 15:34:30 +0100 Subject: [PATCH] fix(form) : remove unused property + remove required num adress --- src/structures/dto/structure.dto.ts | 2 -- src/structures/schemas/address.schema.ts | 1 - src/structures/schemas/structure.schema.ts | 3 --- 3 files changed, 6 deletions(-) diff --git a/src/structures/dto/structure.dto.ts b/src/structures/dto/structure.dto.ts index 01c7a9629..485cdf3dd 100644 --- a/src/structures/dto/structure.dto.ts +++ b/src/structures/dto/structure.dto.ts @@ -46,8 +46,6 @@ export class structureDto { @ArrayNotEmpty() publics: string[]; @IsNotEmpty() - freeWifi: boolean; - @IsNotEmpty() freeWorkShop: boolean; @IsNotEmpty() nbComputers: number; diff --git a/src/structures/schemas/address.schema.ts b/src/structures/schemas/address.schema.ts index f0d34d8f4..8fa4e35c5 100644 --- a/src/structures/schemas/address.schema.ts +++ b/src/structures/schemas/address.schema.ts @@ -4,7 +4,6 @@ import { IsNotEmpty } from 'class-validator'; export type AddressDocument = Address & Document; export class Address { - @IsNotEmpty() numero: string; @IsNotEmpty() diff --git a/src/structures/schemas/structure.schema.ts b/src/structures/schemas/structure.schema.ts index b782161cb..c18f9cdcc 100644 --- a/src/structures/schemas/structure.schema.ts +++ b/src/structures/schemas/structure.schema.ts @@ -93,9 +93,6 @@ export class Structure { @Prop() equipmentsAndServices: string[]; - @Prop() - freeWifi: boolean; - @Prop() freeWorkShop: boolean; -- GitLab