From bba7be589fa84211241eb08e2321b3e51d6b6f6a Mon Sep 17 00:00:00 2001 From: selim mustafaev Date: Mon, 7 Jun 2021 20:57:03 +0200 Subject: [PATCH] remove logs from migration --- migration.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration.js b/migration.js index 2378c93..6c5acde 100644 --- a/migration.js +++ b/migration.js @@ -45,6 +45,7 @@ async function fixNullEvents() { let vehicles = await collection.find().toArray(); for(let vehicle of vehicles) { if(vehicle.events == null) { + //console.log(vehicle.events); await collection.updateOne({ number: vehicle.number }, { $set: { events: [] } }); } } @@ -55,4 +56,4 @@ async function fixNullEvents() { //await addDebugInfoStatus(); await fixNullEvents(); console.log('====== Done ======'); -})(); \ No newline at end of file +})();