From 42c59c17ee0890326b79ec784e504da6089741c7 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 16 Feb 2022 12:29:05 +0100 Subject: [PATCH] Remove deleteMany --- packages/ipfs-api/src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ipfs-api/src/server.ts b/packages/ipfs-api/src/server.ts index ff2f9ca0..e8db349c 100644 --- a/packages/ipfs-api/src/server.ts +++ b/packages/ipfs-api/src/server.ts @@ -21,7 +21,7 @@ require("dotenv").config(); console.log("ensuring database model"); const recordsDB = await mongo.getCollection("records"); await mongo.ensureIndex("records", "cid", { unique: true }); - await recordsDB.deleteMany({}); + // await recordsDB.deleteMany({}); // create the server console.log("creating express server");