Skip to content

Commit

Permalink
Merge pull request #66 from chentsulin/patch-1
Browse files Browse the repository at this point in the history
fix semicolon syntax error on readme
  • Loading branch information
bsiddiqui committed Sep 26, 2018
2 parents c637aaa + 079c0e2 commit 30c2852
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 30c2852

Please sign in to comment.