Enlève le référencement des règles privées dans algolia

fix #2366
pull/1979/head
Johan Girod 2022-11-01 10:04:42 +01:00
parent 2e427647ad
commit 0af7102ca0
1 changed files with 2 additions and 2 deletions

View File

@ -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