From 1d53db2854cb0307c7a64baaf8ec054b38951f42 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 14 Jul 2015 08:22:44 -0400 Subject: [PATCH] Add registered_at UNIX epoch --- build/actions/device.js | 1 + lib/actions/device.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/build/actions/device.js b/build/actions/device.js index 6efe2322..52f50854 100644 --- a/build/actions/device.js +++ b/build/actions/device.js @@ -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); }); diff --git a/lib/actions/device.coffee b/lib/actions/device.coffee index 2e766c0a..67b2917d 100644 --- a/lib/actions/device.coffee +++ b/lib/actions/device.coffee @@ -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