Update persisted-model.js

`find` to `findById`
This commit is contained in:
linguofeng 2015-10-28 12:48:36 +08:00
parent 32085475ed
commit 4717fb3dbd
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ module.exports = function(registry) {
* @param {Object} instance Model instance matching the specified ID or null if no instance matches. * @param {Object} instance Model instance matching the specified ID or null if no instance matches.
*/ */
PersistedModel.findById = function find(id, filter, cb) { PersistedModel.findById = function findById(id, filter, cb) {
throwNotAttached(this.modelName, 'findById'); throwNotAttached(this.modelName, 'findById');
}; };