             if heartBeat.value? and not heartBeatHash[date]?
                 heartBeatsToSave.push heartBeat
 
-            if bloodPressure.systolic? and not bloodPressure[date]?
+            if bloodPressure.systolic? and not bloodPressureHash[date]?
                 bloodPressuresToSave.push bloodPressure
 
         log.debug "#{measuresToSave.length} weight measures to save"

request = require 'request'
moment = require 'moment'
crypto = require 'crypto'

# helpers


        # Get auth token.
        onceUrl = 'https://auth.withings.com/index/service/once/'
        request.post onceUrl, form: data, (err, res, body) =>
            return callback err if err

            body = JSON.parse body
            once = body.body.once
