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

Commit 6f2072ae by Mick Hansen

use loop if any date attributes

1 parent cfdd4f3f
Showing with 2 additions and 2 deletions
......@@ -122,8 +122,8 @@ module.exports = (function() {
this.dataValues = {}
}
// 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.Model._hasBooleanAttributes) {
// If raw, and we're not dealing with includes or special attributes, just set it straight on the dataValues object
if (options.raw && !(this.options && this.options.include) && !this.Model._hasBooleanAttributes && !this.Model._hasDateAttributes) {
if (Object.keys(this.dataValues).length) {
this.dataValues = _.extend(this.dataValues, values)
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!