Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbatista committed Sep 22, 2017
1 parent 84353bb commit ec721ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/data-access-object.js
Expand Up @@ -52,7 +52,7 @@ DataAccessObject.find = function find(where, cb) {
var Model = this;
var connector = Model.getConnector();
assert(typeof connector.find === 'function',
'schedule() must be implemented by the connector');
'find() must be implemented by the connector');

return connector.find(where, cb);
};
Expand All @@ -67,7 +67,7 @@ DataAccessObject.now = function schedule(name, data, cb) {
var Model = this;
var connector = Model.getConnector();
assert(typeof connector.now === 'function',
'schedule() must be implemented by the connector');
'now() must be implemented by the connector');

return connector.now(name, data, cb);
};
Expand Down Expand Up @@ -96,7 +96,7 @@ DataAccessObject.every = function every(when, name, data, cb) {

var Model = this;
var connector = Model.getConnector();
assert(typeof connector.schedule === 'function',
assert(typeof connector.every === 'function',
'every() must be implemented by the connector');

return connector.every(when, name, data, cb);
Expand Down Expand Up @@ -127,7 +127,7 @@ DataAccessObject.purge = function purge(cb) {
var Model = this;
var connector = Model.getConnector();
assert(typeof connector.purge === 'function',
'schedule() must be implemented by the connector');
'purge() must be implemented by the connector');

return connector.purge(cb);
};
Expand All @@ -142,7 +142,7 @@ DataAccessObject.delete = DataAccessObject.cancel = function cancel(where, cb) {
var Model = this;
var connector = Model.getConnector();
assert(typeof connector.cancel === 'function',
'schedule() must be implemented by the connector');
'cancel() must be implemented by the connector');

return connector.cancel(where, cb);
};
Expand Down

0 comments on commit ec721ad

Please sign in to comment.