From 652dc9a89f485f9a9feabeb5da71371553b1a3f5 Mon Sep 17 00:00:00 2001 From: Sean Coates Date: Tue, 16 Apr 2013 12:12:25 -0400 Subject: [PATCH] make the default callback for DBI dbiSolo --- plugin/dbi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/dbi.js b/plugin/dbi.js index a80d5e3..7c816e5 100644 --- a/plugin/dbi.js +++ b/plugin/dbi.js @@ -39,7 +39,8 @@ module.exports = function (service) { return; } - var reading = thisService.callback(result); + var callback = thisService.callback || shared.dbiSolo; + var reading = callback(result); if ("object" == typeof reading) { if (serviceName.indexOf('%') === -1) {