Comparing version 6.9.0 to 6.9.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [6.9.1](https://gitlab.com/dmfay/massive-js/compare/v6.9.0...v6.9.1) (2021-06-21) | ||
### Bug Fixes | ||
* avoid overriding options.single in join queries ([671b785](https://gitlab.com/dmfay/massive-js/commit/671b785cefc0ad4444447f22142602f34b852741)), closes [#735](https://gitlab.com/dmfay/massive-js/issues/735) | ||
## [6.9.0](https://gitlab.com/dmfay/massive-js/compare/v6.8.0...v6.9.0) (2021-05-13) | ||
@@ -7,0 +14,0 @@ |
@@ -61,3 +61,9 @@ 'use strict'; | ||
this.criteria = _.fromPairs([[this.source.pk[0], criteria]]); | ||
this.single = this.source.loader !== 'join'; | ||
if (this.source.loader !== 'join') { | ||
// for single-relation queries the unary pk can only refer to a single | ||
// row, so make sure we return an object no matter what; nothing can be | ||
// assumed for a join query, however | ||
this.single = true; | ||
} | ||
} else { | ||
@@ -64,0 +70,0 @@ this.criteria = criteria; |
{ | ||
"name": "massive", | ||
"version": "6.9.0", | ||
"version": "6.9.1", | ||
"description": "A small query tool for Postgres that embraces json and makes life simpler", | ||
@@ -5,0 +5,0 @@ "homepage": "https://massivejs.org", |
188750
3102