Skip to content

Commit

Permalink
feat: add update function in base adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Oct 13, 2016
1 parent 58ce374 commit 4f78292
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/adapters/base.js
Expand Up @@ -68,6 +68,12 @@ class Adapter extends EventEmitter {
});
}

update(model, pk, data, callback) {
process.nextTick(function() {
callback(new Error("this adapter's insert function is not implemented yet."));
});
}

getDBName() {
return "";
}
Expand Down

0 comments on commit 4f78292

Please sign in to comment.