diff --git a/lib/db/tables.js b/lib/db/tables.js index 67faaded..61679896 100644 --- a/lib/db/tables.js +++ b/lib/db/tables.js @@ -18,8 +18,10 @@ module.exports = { primaryKey: 'password' , indexes: { response: null - , responsePerDevice: function(row) { - return [row('response'), row('deviceId')] + , responsePerDevice: { + indexFunction: function(row) { + return [row('response'), row('deviceId')] + } } } }