mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Merge pull request #95 from resin-io/fix/device-registered-at
Add registered_at UNIX epoch
This commit is contained in:
commit
122253bb25
@ -245,6 +245,7 @@
|
||||
}
|
||||
results.config.deviceId = device.id;
|
||||
results.config.uuid = device.uuid;
|
||||
results.config.registered_at = Math.floor(Date.now() / 1000);
|
||||
params.uuid = results.config.uuid;
|
||||
return callback(null, results);
|
||||
});
|
||||
|
@ -324,6 +324,7 @@ exports.init =
|
||||
# Associate a device
|
||||
results.config.deviceId = device.id
|
||||
results.config.uuid = device.uuid
|
||||
results.config.registered_at = Math.floor(Date.now() / 1000)
|
||||
|
||||
params.uuid = results.config.uuid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user