Expanded 39x profile migration to include chatbots

This commit is contained in:
Dev 2024-11-01 20:06:44 +00:00
parent 9fe28edbe4
commit 4b12405329

View File

@ -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;
}
}
/**