 
 fetchVisualiserHistoConso = (requiredFields, entries, data, callback) ->
     K.logger.info "fetchVisualiserHistoConso"
-    async.mapSeries entries.contracts, (contract, cb) ->
+    async.mapSeries entries.contract, (contract, cb) ->
         path = '/ws/visualiserHistoConso_rest_V3-0/invoke'
         body =
             'message:msgRequete':


        K.logger.info 'Fetched edelia token'
        data.edeliaToken = result.access_token
        data.contract = entries.contracts[0]
        callback()



            jeton_sso: data.edfToken
            bp: entries.clients[0].clientId
            # TODO : one procedure per contract !!!
            pdl: entries.contract[0].pdl
        json: true
    , (err, response, result) ->
        if err
