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 +})();