bookshelf-modelbase
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -114,3 +114,3 @@ var extend = require('xtend') | ||
options = extend({ patch: true, require: true }, options) | ||
return this.forge({ id: options.id }).fetch(options) | ||
return this.forge({ [this.prototype.idAttribute]: options.id }).fetch(options) | ||
.then(function (model) { | ||
@@ -130,3 +130,3 @@ return model ? model.save(data, options) : undefined | ||
options = extend({ require: true }, options) | ||
return this.forge({ id: options.id }) | ||
return this.forge({ [this.prototype.idAttribute]: options.id }) | ||
.destroy(options) | ||
@@ -133,0 +133,0 @@ }, |
{ | ||
"name": "bookshelf-modelbase", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"description": "Extensible ModelBase for bookshelf-based model layers", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23679