From 8e369a8ac983081d4cbba10c048464e63e0ab171 Mon Sep 17 00:00:00 2001 From: Anselme Date: Mon, 21 Oct 2024 15:59:07 +0200 Subject: [PATCH] =?UTF-8?q?on=20ne=20supprime=20pas=20une=20deuxi=C3=A8me?= =?UTF-8?q?=20fois=20les=20PDR=20archiv=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../import/pointDeRassemblementImportService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/planDeTransport/pointDeRassemblement/import/pointDeRassemblementImportService.ts b/api/src/planDeTransport/pointDeRassemblement/import/pointDeRassemblementImportService.ts index 97f93b4cfd..a5a9c6e816 100644 --- a/api/src/planDeTransport/pointDeRassemblement/import/pointDeRassemblementImportService.ts +++ b/api/src/planDeTransport/pointDeRassemblement/import/pointDeRassemblementImportService.ts @@ -63,7 +63,7 @@ export const importPointDeRassemblement = async (pdrFilePath: string) => { } // suppression logique de tous les PDR sans matricule (legacy) - await PointDeRassemblementModel.updateMany({ matricule: { $exists: false } }, { $set: { deletedAt: new Date() } }); + await PointDeRassemblementModel.updateMany({ matricule: { $exists: false }, deletedAt: { $exists: false } }, { $set: { deletedAt: new Date() } }); return report; };