mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-29 15:44:26 +00:00
update for the new resin.models.device.generateUniqueKey
This commit is contained in:
parent
f17cbb1205
commit
7a0e8beb07
@ -143,7 +143,7 @@ exports.register =
|
||||
resin.models.application.get(params.application).then (application) ->
|
||||
|
||||
Promise.try ->
|
||||
return options.uuid or resin.models.device.generateUUID()
|
||||
return options.uuid or resin.models.device.generateUniqueKey()
|
||||
.then (uuid) ->
|
||||
console.info("Registering to #{application.app_name}: #{uuid}")
|
||||
return resin.models.device.register(application.app_name, uuid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user