From 638322fd47dc4fa7ba8a488f9ab295ebc4813101 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 13 Oct 2015 15:31:26 +0900 Subject: [PATCH] Fix VNC auth DB index. --- lib/db/tables.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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')] + } } } }