Skip to content
Snippets Groups Projects
Commit 6fc9764a authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: sge transmissionRecurente and add safety case

parent 889d9284
No related branches found
No related tags found
No related merge requests found
Pipeline #43989 passed
......@@ -73,6 +73,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(
......
......@@ -266,7 +266,7 @@ function commanderCollectePublicationMesures(
<injection>false</injection>
<mesuresPas>PT30M</mesuresPas>
<mesuresCorrigees>false</mesuresCorrigees>
<transmissionRecurrente>true</transmissionRecurrente>
<transmissionRecurrente>false</transmissionRecurrente>
<periodiciteTransmission>P1D</periodiciteTransmission>
</accesMesures>
</demande>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment