From 3b646cef679063ec69f2d351f7c137984186fd0e Mon Sep 17 00:00:00 2001 From: SonofaPancak Date: Thu, 21 Sep 2023 12:04:18 -0400 Subject: [PATCH] Ajout du type et correctif de DTO equipement --- src/Equipment/Models/Equipment.ts | 3 ++- src/Equipment/index.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 src/Equipment/index.ts diff --git a/src/Equipment/Models/Equipment.ts b/src/Equipment/Models/Equipment.ts index e1c6e269..d06a993a 100644 --- a/src/Equipment/Models/Equipment.ts +++ b/src/Equipment/Models/Equipment.ts @@ -137,13 +137,14 @@ class Equipment extends AbstractModel { label: document.label ?? '', description: document.description ?? '', brand: document.brand ?? '', - model: document.model ?? '', + modelName: document.modelName ?? '', slug: document.slug ?? '', mainImage: document.mainImage ?? '', url: document.url ?? [], meta: document.meta ?? {}, createAt: document.createAt ?? '', updatedAt: document.updatedAt ?? '', + type: document.type ?? '', } } diff --git a/src/Equipment/index.ts b/src/Equipment/index.ts deleted file mode 100644 index 85606c1b..00000000 --- a/src/Equipment/index.ts +++ /dev/null @@ -1 +0,0 @@ -/**silence is golden*/ \ No newline at end of file