mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-23 04:48:15 +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.deviceId = device.id;
|
||||||
results.config.uuid = device.uuid;
|
results.config.uuid = device.uuid;
|
||||||
|
results.config.registered_at = Math.floor(Date.now() / 1000);
|
||||||
params.uuid = results.config.uuid;
|
params.uuid = results.config.uuid;
|
||||||
return callback(null, results);
|
return callback(null, results);
|
||||||
});
|
});
|
||||||
|
@ -324,6 +324,7 @@ exports.init =
|
|||||||
# Associate a device
|
# Associate a device
|
||||||
results.config.deviceId = device.id
|
results.config.deviceId = device.id
|
||||||
results.config.uuid = device.uuid
|
results.config.uuid = device.uuid
|
||||||
|
results.config.registered_at = Math.floor(Date.now() / 1000)
|
||||||
|
|
||||||
params.uuid = results.config.uuid
|
params.uuid = results.config.uuid
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user