mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
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:
parent
fa6dcd45e7
commit
7e342e9d80
@ -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: =>
|
||||
|
Loading…
Reference in New Issue
Block a user