From d2b2cf723653abb39b3229a09250087268225d4f Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Tue, 16 May 2023 16:29:44 +0200
Subject: [PATCH] refacto(structure): remove useless numero field

---
 src/structures/dto/structure.dto.ts          | 1 -
 src/structures/structures.controller.spec.ts | 1 -
 test/mock/data/structures.mock.data.ts       | 1 -
 3 files changed, 3 deletions(-)

diff --git a/src/structures/dto/structure.dto.ts b/src/structures/dto/structure.dto.ts
index 00c08c087..dc1133b86 100644
--- a/src/structures/dto/structure.dto.ts
+++ b/src/structures/dto/structure.dto.ts
@@ -6,7 +6,6 @@ import { Week } from '../../shared/schemas/week.schema';
 import { Address } from '../schemas/address.schema';
 
 export class StructureDto {
-  numero: string;
   createdAt: Date;
   updatedAt: Date;
   @IsOptional()
diff --git a/src/structures/structures.controller.spec.ts b/src/structures/structures.controller.spec.ts
index 75a0d6d68..035b305d6 100644
--- a/src/structures/structures.controller.spec.ts
+++ b/src/structures/structures.controller.spec.ts
@@ -88,7 +88,6 @@ describe('AuthController', () => {
 
     const structureId = '1';
     const res = await controller.update(structureId, {
-      numero: null,
       deletedAt: null,
       remoteAccompaniment: null,
       dataShareConsentDate: null,
diff --git a/test/mock/data/structures.mock.data.ts b/test/mock/data/structures.mock.data.ts
index 400aae0c8..efe80a881 100644
--- a/test/mock/data/structures.mock.data.ts
+++ b/test/mock/data/structures.mock.data.ts
@@ -235,5 +235,4 @@ export const structureMockDto: StructureDto = {
   deletedAt: new Date(),
   remoteAccompaniment: true,
   dataShareConsentDate: new Date(),
-  numero: '',
 };
-- 
GitLab