Skip to content

Commit

Permalink
feat(server): migration de suppression de la raisonSociale - enseigne…
Browse files Browse the repository at this point in the history
… computed dans effectifs (#3397)
  • Loading branch information
sbenfares authored Nov 28, 2023
1 parent 61d4e7e commit 5565ceb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Db } from "mongodb";

export const up = async (db: Db) => {
await db
.collection("effectifs")
.updateMany({}, { $unset: { "_computed.organisme.enseigne": "", "_computed.organisme.raison_sociale": "" } });
};

0 comments on commit 5565ceb

Please sign in to comment.