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

Commit fe9fdc94 by Jan Aagaard Meier

Fix createdAt to work without updatedAt. Closes #2160

1 parent 0dff27a8
Showing with 1 additions and 1 deletions
......@@ -360,7 +360,7 @@ module.exports = (function() {
&& !!self.daoFactory.rawAttributes[createdAtAttr].defaultValue
)
? self.daoFactory.rawAttributes[createdAtAttr].defaultValue
: values[updatedAtAttr])
: Utils.now(self.sequelize.options.dialect))
}
var query = null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!