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();
|
let vehicles = await collection.find().toArray();
|
||||||
for(let vehicle of vehicles) {
|
for(let vehicle of vehicles) {
|
||||||
if(vehicle.events == null) {
|
if(vehicle.events == null) {
|
||||||
|
//console.log(vehicle.events);
|
||||||
await collection.updateOne({ number: vehicle.number }, { $set: { events: [] } });
|
await collection.updateOne({ number: vehicle.number }, { $set: { events: [] } });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -55,4 +56,4 @@ async function fixNullEvents() {
|
|||||||
//await addDebugInfoStatus();
|
//await addDebugInfoStatus();
|
||||||
await fixNullEvents();
|
await fixNullEvents();
|
||||||
console.log('====== Done ======');
|
console.log('====== Done ======');
|
||||||
})();
|
})();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user