Update migration script. #34

Merged
alekswilc merged 1 commits from alekswilc-patch-2 into main 2024-08-26 16:52:59 +02:00

View File

@ -80,7 +80,7 @@ import { Model, model, Schema } from 'mongoose';
Object.values(x.dispatcherStats).reduce((acc, curr) => acc + curr.time, 0)
console.log('updated ' + x.steamName)
await MProfile.updateOne({ id: x.id }, { trainPoints: x.trainPoints, trainDistance: x.trainDistance })
await MProfile.updateOne({ id: x.id }, { trainPoints: x.trainPoints, trainDistance: x.trainDistance, dispatcherTime: x.dispatcherTime, trainTime: x.trainTime })
};