Add registered_at UNIX epoch

This commit is contained in:
Juan Cruz Viotti 2015-07-14 08:22:44 -04:00
parent 10478e389a
commit 1d53db2854
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