feathers-sequelize
Advanced tools
Comparing version 1.4.4 to 1.4.5
# Change Log | ||
## [v1.4.4](https://github.com/feathersjs/feathers-sequelize/tree/v1.4.4) (2017-03-24) | ||
[Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v1.4.3...v1.4.4) | ||
**Closed issues:** | ||
- Relation between Models not working. [\#98](https://github.com/feathersjs/feathers-sequelize/issues/98) | ||
- Can we create nested models in one go? [\#97](https://github.com/feathersjs/feathers-sequelize/issues/97) | ||
- Add example for model relations [\#20](https://github.com/feathersjs/feathers-sequelize/issues/20) | ||
**Merged pull requests:** | ||
- checking for the toJSON method on the instance before calling it [\#100](https://github.com/feathersjs/feathers-sequelize/pull/100) ([lowip](https://github.com/lowip)) | ||
## [v1.4.3](https://github.com/feathersjs/feathers-sequelize/tree/v1.4.3) (2017-03-17) | ||
@@ -4,0 +17,0 @@ [Full Changelog](https://github.com/feathersjs/feathers-sequelize/compare/v1.4.2...v1.4.3) |
@@ -228,3 +228,5 @@ 'use strict'; | ||
return this.Model.findById(id).then(function (instance) { | ||
// Force the {raw: false} option as the instance is needed to properly | ||
// update | ||
return this.Model.findById(id, { raw: false }).then(function (instance) { | ||
if (!instance) { | ||
@@ -235,3 +237,3 @@ throw new _feathersErrors2.default.NotFound('No record found for id \'' + id + '\''); | ||
var copy = {}; | ||
Object.keys(typeof instance.toJSON === 'function' ? instance.toJSON() : instance).forEach(function (key) { | ||
Object.keys(instance.toJSON()).forEach(function (key) { | ||
if (typeof data[key] === 'undefined') { | ||
@@ -238,0 +240,0 @@ copy[key] = null; |
{ | ||
"name": "feathers-sequelize", | ||
"description": "A service adapter for Sequelize an SQL ORM", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"homepage": "https://github.com/feathersjs/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
49945
325