Skip to content

Commit

Permalink
Merge branch 'release/4.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 12, 2017
2 parents f372a7f + d44364a commit 4adb6df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="4.1.1"></a>
## [4.1.1](https://github.com/adonisjs/adonis-lucid/compare/v4.1.0...v4.1.1) (2017-12-12)


### Bug Fixes

* **belongsToMany:** typo in relation added methods on base relation ([e902760](https://github.com/adonisjs/adonis-lucid/commit/e902760)), closes [#258](https://github.com/adonisjs/adonis-lucid/issues/258)



<a name="4.1.0"></a>
# [4.1.0](https://github.com/adonisjs/adonis-lucid/compare/v4.0.25...v4.1.0) (2017-12-07)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adonisjs/lucid",
"version": "4.1.0",
"version": "4.1.1",
"description": "SQL ORM built on top of Active Record pattern",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/Lucid/Relations/BelongsToMany.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ class BelongsToMany extends BaseRelation {
* Adding all aggregate methods at once.
*/
aggregates.forEach((method) => {
BaseRelation.prototype[method] = function (expression) {
BelongsToMany.prototype[method] = function (expression) {
this._validateRead()
this._prepareAggregate()
return this.relatedQuery[method](expression)
Expand All @@ -931,7 +931,7 @@ aggregates.forEach((method) => {
* Adding all short hand aggregate methods at once.
*/
shortHandAggregates.forEach((method) => {
BaseRelation.prototype[method] = function (expression) {
BelongsToMany.prototype[method] = function (expression) {
this._validateRead()
this._selectFields()
this._prepareAggregate()
Expand Down

0 comments on commit 4adb6df

Please sign in to comment.