From a6a2e4653464f3860aa564253a96eac161581e16 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sat, 13 Jun 2026 21:20:48 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20import-zip=20r=C3=A9f=C3=A9rentiel=20?= =?UTF-8?q?=E2=80=94=20ajouter=20methode=5Fremboursement/type=5Fpret=5Fdef?= =?UTF-8?q?aut/freq=5Finterets=5Fdefaut=20manquants=20dans=20INSERT=20et?= =?UTF-8?q?=20UPDATE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/routes/referentiel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/referentiel.js b/backend/src/routes/referentiel.js index 6f89e8b..b14053f 100644 --- a/backend/src/routes/referentiel.js +++ b/backend/src/routes/referentiel.js @@ -477,6 +477,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { const fields = [ p.url || null, p.domiciliation || 'france', p.fiscalite || 'flat_tax', p.taux_fiscalite_locale ?? null, p.type_produit_fiscal || '2TT', + p.methode_remboursement || 'portefeuille', p.type_pret_defaut ?? null, p.freq_interets_defaut ?? null, p.description ?? null, p.annee_creation ?? null, p.investisseurs_types ?? null, p.regulateur ?? null, p.numero_licence ?? null, p.is_regule ? 1 : 0, @@ -494,6 +495,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { db.prepare(` UPDATE plateformes_referentiel SET url=?, domiciliation=?, fiscalite=?, taux_fiscalite_locale=?, type_produit_fiscal=?, + methode_remboursement=?, type_pret_defaut=?, freq_interets_defaut=?, description=?, annee_creation=?, investisseurs_types=?, regulateur=?, numero_licence=?, is_regule=?, pays_inscription=?, pays_siege=?, pays_operation=?, @@ -511,6 +513,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { const r = db.prepare(` INSERT INTO plateformes_referentiel (nom, url, domiciliation, fiscalite, taux_fiscalite_locale, type_produit_fiscal, + methode_remboursement, type_pret_defaut, freq_interets_defaut, description, annee_creation, investisseurs_types, regulateur, numero_licence, is_regule, pays_inscription, pays_siege, pays_operation, @@ -519,7 +522,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { garantie_rachat, statistiques_publiques, bonus_inscription, marche_secondaire, investissement_auto, url_trustpilot, url_linkedin, logo_filename, icone_filename, updated_at) - VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,datetime('now')) + VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,datetime('now')) `).run(p.nom, ...fields); refId = r.lastInsertRowid; created++;