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

Commit cbd3be84 by Gustavo Henke

Update JSDoc of Model.prototype.findOrInitialize()

The @return tag says that this method returns Promise<Instance>, while the
real return contains also an 'initialized' boolean value.
1 parent 69c8dc40
Showing with 1 additions and 1 deletions
...@@ -1753,7 +1753,7 @@ Model.prototype.create = function(values, options) { ...@@ -1753,7 +1753,7 @@ Model.prototype.create = function(values, options) {
* @param {Object} [options.transaction] Transaction to run query under * @param {Object} [options.transaction] Transaction to run query under
* @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql. * @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql.
* *
* @return {Promise<Instance>} * @return {Promise<Instance,initialized>}
* @alias findOrBuild * @alias findOrBuild
*/ */
Model.prototype.findOrInitialize = Model.prototype.findOrBuild = function(options) { Model.prototype.findOrInitialize = Model.prototype.findOrBuild = function(options) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!