Skip to content
Snippets Groups Projects
Commit 834cff73 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Suppression du 'Date de fin de vigueur' redondant

parent 23311b68
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ type BilateralTreaty = TreatyBase & { ...@@ -34,7 +34,6 @@ type BilateralTreaty = TreatyBase & {
| "BILATERAL - AUTRE ACCORD" | "BILATERAL - AUTRE ACCORD"
| "BILATERAL - Autre accord" | "BILATERAL - Autre accord"
| "BILATERAL - Procès-verbal" | "BILATERAL - Procès-verbal"
"Date de fin de vigueur"?: string
} }
type EuropeanAgreement = TreatyBase & { type EuropeanAgreement = TreatyBase & {
...@@ -56,7 +55,6 @@ type MultilateralTreaty = TreatyBase & { ...@@ -56,7 +55,6 @@ type MultilateralTreaty = TreatyBase & {
| "MULTILATERAL - Arrangement administratif" | "MULTILATERAL - Arrangement administratif"
| "MULTILATERAL - AUTRE ACCORD" | "MULTILATERAL - AUTRE ACCORD"
| "MULTILATERAL - Autre accord" | "MULTILATERAL - Autre accord"
"Date de fin de vigueur"?: string
"Etat des ratifications"?: string "Etat des ratifications"?: string
} }
...@@ -465,16 +463,10 @@ async function downloadTreaties({ ...@@ -465,16 +463,10 @@ async function downloadTreaties({
auditMatch( auditMatch(
(treaty) => (treaty as Treaty)["Type de traité"].split("-")[0].trim(), (treaty) => (treaty as Treaty)["Type de traité"].split("-")[0].trim(),
{ {
BILATERAL: auditObject( BILATERAL: auditObject({}, { ignore: treatyBaseKeys }),
{
"Date de fin de vigueur": auditFrenchDateString,
},
{ ignore: treatyBaseKeys },
),
EUROPEEN: auditObject({}, { ignore: treatyBaseKeys }), EUROPEEN: auditObject({}, { ignore: treatyBaseKeys }),
MULTILATERAL: auditObject( MULTILATERAL: auditObject(
{ {
"Date de fin de vigueur": auditFrenchDateString,
"Etat des ratifications": [auditTrimString, auditEmptyToNull], "Etat des ratifications": [auditTrimString, auditEmptyToNull],
}, },
{ ignore: treatyBaseKeys }, { ignore: treatyBaseKeys },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment