diff --git a/project/src/services/ProfileFixerService.ts b/project/src/services/ProfileFixerService.ts index ae5bef13..f4b0d91d 100644 --- a/project/src/services/ProfileFixerService.ts +++ b/project/src/services/ProfileFixerService.ts @@ -1072,7 +1072,8 @@ export class ProfileFixerService public fixIncorrectAidValue(fullProfile: IAkiProfile): void { // Not a number, regenerate - if (Number.isNaN(fullProfile.characters.pmc.aid)) + // biome-ignore lint/suspicious/noGlobalIsNan: + if (isNaN(fullProfile.characters.pmc.aid) || !fullProfile.info.aid) { fullProfile.characters.pmc.sessionId = fullProfile.characters.pmc.aid; fullProfile.characters.pmc.aid = this.hashUtil.generateAccountId(); @@ -1082,7 +1083,7 @@ export class ProfileFixerService fullProfile.info.aid = fullProfile.characters.pmc.aid; - this.logger.debug( + this.logger.info( `Migrated AccountId from: ${fullProfile.characters.pmc.sessionId} to: ${fullProfile.characters.pmc.aid}`, ); }