From 0af7102ca0e5b87a34c988a2baf61776a5207838 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 1 Nov 2022 10:04:42 +0100 Subject: [PATCH] =?UTF-8?q?Enl=C3=A8ve=20le=20r=C3=A9f=C3=A9rencement=20de?= =?UTF-8?q?s=20r=C3=A8gles=20priv=C3=A9es=20dans=20algolia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #2366 --- site/scripts/search/update-data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/scripts/search/update-data.ts b/site/scripts/search/update-data.ts index 82a096b94..ca0b14ef2 100644 --- a/site/scripts/search/update-data.ts +++ b/site/scripts/search/update-data.ts @@ -1,12 +1,12 @@ import algoliasearch from 'algoliasearch' import 'dotenv/config.js' import rawRules from 'modele-social' -import { ParsedRules, parsePublicodes } from 'publicodes' +import Engine, { ParsedRules } from 'publicodes' import getSimulationData, { MetadataSrc, } from '../../source/pages/Simulateurs/metadata-src.js' -const { parsedRules } = parsePublicodes(rawRules) +const parsedRules = new Engine(rawRules).getParsedRules() // @ts-ignore Needed by ts-node/esm const env = process.env