feathers-sequelize
Advanced tools
Comparing version 2.3.1 to 2.3.2
# Change Log | ||
## [v2.3.1](https://github.com/feathersjs/feathers-sequelize/tree/v2.3.1) (2017-09-06) | ||
[Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v2.3.0...v2.3.1) | ||
**Closed issues:** | ||
- \[Question\] Should new tests be using Postgres or SQLite or both? [\#154](https://github.com/feathersjs/feathers-sequelize/issues/154) | ||
- Multiple rows delete [\#153](https://github.com/feathersjs/feathers-sequelize/issues/153) | ||
**Merged pull requests:** | ||
- Tests and fixes [\#162](https://github.com/feathersjs/feathers-sequelize/pull/162) ([Ryanthegiantlion](https://github.com/Ryanthegiantlion)) | ||
- Extend test coverage [\#160](https://github.com/feathersjs/feathers-sequelize/pull/160) ([Ryanthegiantlion](https://github.com/Ryanthegiantlion)) | ||
## [v2.3.0](https://github.com/feathersjs/feathers-sequelize/tree/v2.3.0) (2017-08-19) | ||
@@ -4,0 +17,0 @@ [Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v2.2.1...v2.3.0) |
@@ -63,8 +63,13 @@ 'use strict'; | ||
_createClass(Service, [{ | ||
key: 'getModel', | ||
value: function getModel(params) { | ||
return this.Model; | ||
} | ||
}, { | ||
key: 'applyScope', | ||
value: function applyScope(params) { | ||
if ((params.sequelize || {}).scope) { | ||
return this.Model.scope(params.sequelize.scope); | ||
return this.getModel(params).scope(params.sequelize.scope); | ||
} | ||
return this.Model; | ||
return this.getModel(params); | ||
} | ||
@@ -245,4 +250,4 @@ }, { | ||
return this._getOrFind(id, options).then(function (results) { | ||
return _this2.Model.update((0, _lodash2.default)(data, _this2.id), options); | ||
return this._getOrFind(id, params).then(function (results) { | ||
return _this2.getModel(params).update((0, _lodash2.default)(data, _this2.id), options); | ||
}).then(function (results) { | ||
@@ -249,0 +254,0 @@ if (id === null) { |
{ | ||
"name": "feathers-sequelize", | ||
"description": "A service adapter for Sequelize an SQL ORM", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"homepage": "https://github.com/feathersjs/feathers-sequelize", | ||
@@ -86,3 +86,3 @@ "main": "lib/", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^3.0.0", | ||
"mocha": "^4.0.0", | ||
"mysql2": "^1.4.2", | ||
@@ -89,0 +89,0 @@ "pg": "^6.1.5", |
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
80990
473
14