feathers-sequelize
Advanced tools
Comparing version 1.1.6 to 1.2.0
@@ -88,9 +88,8 @@ 'use strict'; | ||
value: function find(params) { | ||
var _this = this; | ||
var paginate = params && typeof params.paginate !== 'undefined' ? params.paginate : this.paginate; | ||
var result = this._find(params, function (where) { | ||
return (0, _feathersQueryFilters2.default)(where, _this.paginate); | ||
return (0, _feathersQueryFilters2.default)(where, paginate); | ||
}); | ||
if (!this.paginate.default) { | ||
if (!paginate.default) { | ||
return result.then(function (page) { | ||
@@ -148,3 +147,3 @@ return page.data; | ||
value: function patch(id, data, params) { | ||
var _this2 = this; | ||
var _this = this; | ||
@@ -162,3 +161,3 @@ var where = _extends({}, params.query); | ||
return this.Model.update(data, options).then(function () { | ||
return _this2._getOrFind(id, params); | ||
return _this._getOrFind(id, params); | ||
}).catch(utils.errorHandler); | ||
@@ -197,3 +196,3 @@ } | ||
value: function remove(id, params) { | ||
var _this3 = this; | ||
var _this2 = this; | ||
@@ -209,3 +208,3 @@ return this._getOrFind(id, params).then(function (data) { | ||
return _this3.Model.destroy(options).then(function () { | ||
return _this2.Model.destroy(options).then(function () { | ||
return data; | ||
@@ -212,0 +211,0 @@ }); |
{ | ||
"name": "feathers-sequelize", | ||
"description": "A service adapter for Sequelize an SQL ORM", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"homepage": "https://github.com/feathersjs/feathers-sequelize", | ||
@@ -67,3 +67,3 @@ "main": "lib/", | ||
"feathers-rest": "^1.3.0", | ||
"feathers-service-tests": "^0.5.2", | ||
"feathers-service-tests": "^0.6.0", | ||
"jshint": "^2.8.0", | ||
@@ -70,0 +70,0 @@ "mocha": "^2.5.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
30350