不要怂,就是干,撸起袖子干!

Commit 4e5f2e82 by Sam Kelleher

Correct type in documentation in instance save()

The type is an array of strings for the property names. Not an object.
1 parent 2a168da8
Showing with 1 additions and 1 deletions
......@@ -480,7 +480,7 @@ Instance.prototype._setInclude = function(key, value, options) {
* This error will have a property for each of the fields for which validation failed, with the error message for that field.
*
* @param {Object} [options]
* @param {Object} [options.fields] An optional array of strings, representing database columns. If fields is provided, only those columns will be validated and saved.
* @param {string[]} [options.fields] An optional array of strings, representing database columns. If fields is provided, only those columns will be validated and saved.
* @param {Boolean} [options.silent=false] If true, the updatedAt timestamp will not be updated.
* @param {Boolean} [options.validate=true] If false, validations won't be run.
* @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!