Skip to content

Commit

Permalink
on ne supprime pas une deuxième fois les PDR archivé
Browse files Browse the repository at this point in the history
  • Loading branch information
achorein authored and Eric013 committed Nov 8, 2024
1 parent ff48b23 commit 8e369a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 8e369a8

Please sign in to comment.