mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 06:33:28 +00:00
Add registered_at UNIX epoch
This commit is contained in:
parent
10478e389a
commit
1d53db2854
@ -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