Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
make the default callback for DBI dbiSolo
Browse files Browse the repository at this point in the history
  • Loading branch information
scoates committed Apr 16, 2013
1 parent 88483bb commit 652dc9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/dbi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 652dc9a

Please sign in to comment.