feathers-sequelize
Advanced tools
Comparing version 4.0.4 to 4.0.5
# Change Log | ||
## [v4.0.4](https://github.com/feathersjs-ecosystem/feathers-sequelize/tree/v4.0.4) (2018-12-22) | ||
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-sequelize/compare/v4.0.3...v4.0.4) | ||
**Merged pull requests:** | ||
- Only filter plain objects in query [\#264](https://github.com/feathersjs-ecosystem/feathers-sequelize/pull/264) ([daffl](https://github.com/daffl)) | ||
## [v4.0.3](https://github.com/feathersjs-ecosystem/feathers-sequelize/tree/v4.0.3) (2018-12-21) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/feathersjs-ecosystem/feathers-sequelize/compare/v4.0.2...v4.0.3) |
@@ -263,6 +263,5 @@ const errors = require('@feathersjs/errors'); | ||
// update | ||
const updateOptions = Object.assign({}, params.sequelize, { raw: false }); | ||
const getOptions = Object.assign({}, params, { query: where, sequelize: { raw: false } }); | ||
const seqOptions = Object.assign({}, params.sequelize, { raw: false }); | ||
return this._get(id, getOptions).then(instance => { | ||
return this._get(id, { sequelize: seqOptions, query: where }).then(instance => { | ||
const copy = Object.keys(instance.toJSON()).reduce((result, key) => { | ||
@@ -274,4 +273,4 @@ result[key] = typeof data[key] === 'undefined' ? null : data[key]; | ||
return instance.update(copy, updateOptions) | ||
.then(() => this._get(id, { sequelize: params.sequelize })); | ||
return instance.update(copy, seqOptions) | ||
.then(() => this._get(id, { sequelize: seqOptions })); | ||
}) | ||
@@ -278,0 +277,0 @@ .then(select(params, this.id)) |
{ | ||
"name": "feathers-sequelize", | ||
"description": "A service adapter for Sequelize an SQL ORM", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"homepage": "https://github.com/feathersjs-ecosystem/feathers-sequelize", | ||
@@ -6,0 +6,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
78061
370