不要怂,就是干,撸起袖子干!

Commit 6d503d2c by Mick Hansen

Should be able to use raw even with read only attributes

1 parent 0f1b00df
Showing with 1 additions and 1 deletions
...@@ -112,7 +112,7 @@ module.exports = (function() { ...@@ -112,7 +112,7 @@ module.exports = (function() {
} }
// If raw, and we're not dealing with includes, just set it straight on the dataValues object // If raw, and we're not dealing with includes, just set it straight on the dataValues object
if (options.raw && !(this.options && this.options.include) && !this._hasBooleanAttributes && !this._hasReadOnlyAttributes) { if (options.raw && !(this.options && this.options.include) && !this._hasBooleanAttributes) {
if (Object.keys(this.dataValues).length) { if (Object.keys(this.dataValues).length) {
this.dataValues = _.extend(this.dataValues, values) this.dataValues = _.extend(this.dataValues, values)
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!