diff --git a/index.js b/index.js index bb78c996d8700ccaa29d57972103dc574e781e17..2b3b6e116ce5365b919d0c40b37c1b0a2d227167 100644 --- a/index.js +++ b/index.js @@ -228364,7 +228364,7 @@ async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) { if (Array.isArray(currentContracts)) { currentContract = parseContracts(parsedReply)[0] } else { - currentContract = parseContracts(parsedReply) + currentContract = currentContracts } if ( (currentContract.etatCode === contractState.ACTIF || @@ -228447,7 +228447,7 @@ async function findUserPdl( inseeCode, escalierEtEtageEtAppartement = '' ) { - log('info', 'Fetching user data') + log('info', 'Fetching user pdl') const sgeHeaders = { 'Content-Type': 'text/xml;charset=UTF-8', apikey: apiAuthKey,