Remove deleteMany

This commit is contained in:
PJ 2022-02-16 12:29:05 +01:00
parent 4b77e0c53c
commit 42c59c17ee
No known key found for this signature in database
GPG Key ID: F345964979FA8971
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ require("dotenv").config();
console.log("ensuring database model");
const recordsDB = await mongo.getCollection<IRecord>("records");
await mongo.ensureIndex("records", "cid", { unique: true });
await recordsDB.deleteMany({});
// await recordsDB.deleteMany({});
// create the server
console.log("creating express server");