diff --git a/lib/db/tables.js b/lib/db/tables.js index 46cf5e4d..424ebb43 100644 --- a/lib/db/tables.js +++ b/lib/db/tables.js @@ -8,7 +8,11 @@ module.exports = { primaryKey: 'serial' , indexes: { owner: function(device) { - return r.branch(device('present'), device('owner')('email'), r.literal()) + return r.branch( + device('present') + , device('owner')('email') + , r.literal() + ) } , lastHeartbeatAt: null }