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

Commit 40814b76 by Mick Hansen

fix issue with custom getter not passing options along

1 parent 74262d3b
Showing with 4 additions and 3 deletions
# Next
# 2.1.1
- [BUG] .get() now passes along options correctly when using a custom getter
- [FEATURE] Lock modes in Postgres now support `OF table`
- [FEATURE] New transaction lock modes `FOR KEY SHARE` and `NO KEY UPDATE` for Postgres 9.3+
- [FEATURE/REFACTOR] Rewritten scopes with complete support for includes and scopes across associations
......
......@@ -217,7 +217,7 @@ module.exports = (function() {
if (this._hasCustomGetters) {
for (_key in this._customGetters) {
if (this._customGetters.hasOwnProperty(_key)) {
values[_key] = this.get(_key);
values[_key] = this.get(_key, options);
}
}
}
......
{
"name": "sequelize",
"description": "Multi dialect ORM for Node.JS",
"version": "2.1.0",
"version": "2.1.1",
"author": "Sascha Depold <sascha@depold.com>",
"contributors": [
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!