Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
fix(pivot): default pivot should be {} instead of null (#23)
Browse files Browse the repository at this point in the history
* fix(pivot): default pivot should be {} instead of null
  • Loading branch information
gjuchault committed Apr 10, 2017
1 parent c3f93cc commit 99f07c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/model/query/belongsToMany.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = function (Query, requelize, Model, join, tree, key) {
.get(joinRow(RelModel._name))
.merge((rel) => {
return {
_pivot: joinRow('pivot').default(null),
_pivot: joinRow('pivot').default({}),
_through: new Query(joinRow, JoinModel, requelize).embed(thirdTree)._query
}
})
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": "requelize",
"version": "0.9.0",
"version": "0.9.1",
"description": "RethinkDB ORM",
"main": "index.js",
"repository": "https://github.com/buckless/requelize.git",
Expand Down

0 comments on commit 99f07c0

Please sign in to comment.