Permalink
Browse files

make the default callback for DBI dbiSolo

  • Loading branch information...
1 parent 88483bb commit 652dc9a89f485f9a9feabeb5da71371553b1a3f5 @scoates scoates committed Apr 16, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/dbi.js
View
@@ -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) {

0 comments on commit 652dc9a

Please sign in to comment.