Merge pull request #95 from resin-io/fix/device-registered-at

Add registered_at UNIX epoch
This commit is contained in:
Juan Cruz Viotti 2015-07-23 13:00:29 -04:00
commit 122253bb25
2 changed files with 2 additions and 0 deletions

View File

@ -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);
});

View File

@ -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