From b0a0dd082fbab1a3ea09670023f8a7d2066e5753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20Wilczy=C5=84ski?= Date: Mon, 26 Aug 2024 16:51:28 +0200 Subject: [PATCH] Update scripts/mongo-migration.js --- scripts/mongo-migration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mongo-migration.js b/scripts/mongo-migration.js index 64102fd..3458318 100644 --- a/scripts/mongo-migration.js +++ b/scripts/mongo-migration.js @@ -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 }) };