Skip to content
Snippets Groups Projects
Commit e6b48a49 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

publish: fix: isFirstStart

generated from commit 500cb668
parent 0befa6ea
No related branches found
No related tags found
No related merge requests found
......@@ -228239,12 +228239,19 @@ async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) {
 
try {
log('debug', 'parsedReply' + JSON.stringify(parsedReply))
if (!parsedReply) {
const json = JSON.stringify(parsedReply)
if (
!JSON.parse(json)['Envelope']['Body'][
'rechercherServicesSouscritsMesuresResponse'
]['servicesSouscritsMesures']
) {
log('debug', 'fail no contract')
return null
}
const currentContracts = parseContracts(parsedReply)
let currentContract = null
// log('debug', 'current contract size length', currentContracts.length)
if (Array.isArray(currentContracts)) {
currentContract = parseContracts(parsedReply)[0]
} else {
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