Fix the check for whether the device is provisioned by correctly getting registered_at and deviceId from config.json into the ApiBinder

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2018-03-14 20:13:30 -03:00
parent fa6dcd45e7
commit 7e342e9d80

View File

@ -59,6 +59,8 @@ module.exports = class Config extends EventEmitter
'deviceType'
'resinApiEndpoint'
'apiTimeout'
'registered_at'
'deviceId'
]).then (conf) ->
return {
uuid: conf.uuid
@ -69,6 +71,8 @@ module.exports = class Config extends EventEmitter
deviceApiKey: conf.deviceApiKey
apiEndpoint: conf.resinApiEndpoint
apiTimeout: conf.apiTimeout
registered_at: conf.registered_at
deviceId: conf.deviceId
}
mixpanelHost: =>