Skip to content

Commit

Permalink
fix semicolon syntax error on readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Sep 26, 2018
1 parent c637aaa commit 079c0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -176,7 +176,7 @@ findOrCreate: function (data, options) {
*/
update: function (data, options) {
options = extend({ patch: true, require: true }, options);
return this.forge({ [this.prototype.idAttribute]: options.id }).fetch(options);
return this.forge({ [this.prototype.idAttribute]: options.id }).fetch(options)
.then(function (model) {
return model ? model.save(data, options) : undefined;
});
Expand Down

0 comments on commit 079c0e2

Please sign in to comment.