diff --git a/index.js b/index.js index bc9ce6023d7402c176c4c39de479f048f4dcc383..03570df0af324432a0b66527b1a894668960f248 100644 --- a/index.js +++ b/index.js @@ -228575,6 +228575,19 @@ async function verifyUserIdentity( ) // Third try, remove address number because it's buggy on SGE side + if (!pdl) { + log('warn', 'Third chance onboarding for sge') + pdl = await findUserPdl( + `${baseUrl}/enedis_SDE_recherche-point/1.0`, + apiAuthKey, + loginUtilisateur, + fields.lastname, + removeMultipleSpaces(removeAddressnumber(userAddress.numeroEtNomVoie)), + userAddress.codePostal, + userAddress.commune.$.code + ) + } + // Third try, remove address number and add escalierEtEtageEtAppartement because it's buggy on SGE side if (!pdl) { log('warn', 'Last chance onboarding for sge') pdl = await findUserPdl(