message: leftPad bungie number with zeroes
diff: @@ -113,6 +113,14 @@ function couldBeD1Account(destinyAccount: DestinyProfileUserInfoCard | UserInfoC
  );
  }
  +function formatBungieName(destinyAccount: DestinyProfileUserInfoCard | UserInfoCard) {
  + return (
  + destinyAccount.bungieGlobalDisplayName +
  + (destinyAccount.bungieGlobalDisplayNameCode &&
  + `#${destinyAccount.bungieGlobalDisplayNameCode.toString().padStart(4, '0')}`)
  + );
  +}
  +
  /**
  * @param accounts raw Bungie API accounts response
  */
  @@ -124,10 +132,7 @@ async function generatePlatforms(
  const accountPromises = accounts.profiles
  .flatMap((destinyAccount) => {
  const account: DestinyAccount = {
  - displayName:
  - destinyAccount.bungieGlobalDisplayName +
  - (destinyAccount.bungieGlobalDisplayNameCode &&
  - `#${destinyAccount.bungieGlobalDisplayNameCode}`),
  + displayName: formatBungieName(destinyAccount),
  originalPlatformType: destinyAccount.membershipType,
  membershipId: destinyAccount.membershipId,
  platformLabel: PLATFORM_LABELS[destinyAccount.membershipType],
  @@ -150,10 +155,7 @@ async function generatePlatforms(
  accounts.profilesWithErrors.flatMap((errorProfile) => {
  const destinyAccount = errorProfile.infoCard;
  const account: DestinyAccount = {
  - displayName:
  - destinyAccount.bungieGlobalDisplayName +
  - (destinyAccount.bungieGlobalDisplayNameCode &&
  - `#${destinyAccount.bungieGlobalDisplayNameCode}`),
  + displayName: formatBungieName(destinyAccount),
  originalPlatformType: destinyAccount.membershipType,
  membershipId: destinyAccount.membershipId,
  platformLabel: PLATFORM_LABELS[destinyAccount.membershipType],
  