knex-model
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -63,5 +63,5 @@ 'use strict'; | ||
KnexBuilder.prototype.update = function(params) { | ||
KnexBuilder.prototype.update = function() { | ||
this._method = 'update'; | ||
this._updateParams = params; | ||
this._updateArguments = arguments; | ||
@@ -103,7 +103,7 @@ return this; | ||
var cbQueue = model._eventQueue.beforeUpdate; | ||
var params = self._updateParams; | ||
var args = self._updateArguments; | ||
return Promise | ||
.map(cbQueue, function(callback) { return callback(params); }) | ||
.then(function() { | ||
return self.knex.update.call(self.knex, params); | ||
return self.knex.update.apply(self.knex, args); | ||
}); | ||
@@ -110,0 +110,0 @@ } |
{ | ||
"name": "knex-model", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Small ORM", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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