From 4b1240532969a9a30aafda217416a3b2c0cdfc4a Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 1 Nov 2024 20:06:44 +0000 Subject: [PATCH] Expanded 39x profile migration to include chatbots --- project/src/controllers/GameController.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index b7cd42b1..8de571f5 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -240,6 +240,17 @@ export class GameController { delete (fullProfile.characters.pmc.Hideout as any).Improvement; this.logger.warning(`Migration: Moved Hideout Improvement data to new property 'Improvements'`); } + + //Remove spt friend / commando from dialogues as they need to be remade using mongo_ids + const commando = fullProfile.dialogues.sptCommando; + if (commando) { + delete fullProfile.dialogues.sptCommando; + } + + const sptFriend = fullProfile.dialogues.friend; + if (sptFriend) { + delete fullProfile.dialogues.sptFriend; + } } /**