From dcb579116c7e0140a530b7c3bfa1f30bd2f7ccc6 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 23 Nov 2023 20:21:02 +0000 Subject: [PATCH] Fix regression in `fixIncorrectAidValue` if check --- project/src/services/ProfileFixerService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}`, ); }