Permalink
Browse files

fix: update base adapter's execute

  • Loading branch information...
XadillaX committed Oct 16, 2016
1 parent 4ed5864 commit c539243daf24b169f15a65ec4e91cdaf685c8637
Showing with 7 additions and 5 deletions.
  1. +7 −5 lib/adapters/base.js
@@ -33,11 +33,6 @@ class Adapter extends EventEmitter {
debug("created.", this);
}

execute(param, callback) {
debug("this adapter instance's execute is not implemented.");
process.nextTick(callback);
}

find(query, callback, options) {
options = null;
process.nextTick(function() {
@@ -75,6 +70,13 @@ class Adapter extends EventEmitter {
});
}

execute() {
const callback = arguments[arguments.length - 1];
process.nextTick(function() {
callback(new Error("this adapter's execute function is not implemented yet."));
});
}

getDBName() {
return "";
}

0 comments on commit c539243

Please sign in to comment.