remove logs from migration
This commit is contained in:
parent
b7902a569e
commit
bba7be589f
@ -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 ======');
|
||||
})();
|
||||
})();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user