Update persisted-model.js
Note the PersistedMode.create() can take an array of instances, per #710.
This commit is contained in:
parent
7c96aec9af
commit
21b28446bf
|
@ -79,7 +79,7 @@ function convertNullToNotFoundError(ctx, cb) {
|
|||
/**
|
||||
* Create new instance of Model class, saved in database
|
||||
*
|
||||
* @param {Object} data Optional data object.
|
||||
* @param {Object}|[{Object}] data Optional data object. Can be either a single model instance or an array of instances.
|
||||
* @param {Function} cb Callback function with `cb(err, obj)` signature,
|
||||
* where `err` is error object and `obj` is null or Model instance.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue