Merge pull request 'Update migration script.' (#34) from alekswilc-patch-2 into main
Reviewed-on: alekswilc/simrail-logs#34
This commit is contained in:
commit
aad78c7519
@ -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 })
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user