Skip to content

Commit 5b94946

Browse files
committed
0.1.4
1 parent ce61e76 commit 5b94946

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
##### 0.1.4 - 09 March 2016
2+
3+
Fix for loadHasMany
4+
15
##### 0.1.3 - 08 March 2016
26

37
Fix for Response class

dist/js-data-adapter.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js-data-adapter.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-adapter",
33
"description": "Base adapter class that all other js-data adapters extend.",
4-
"version": "0.1.3",
4+
"version": "0.1.4",
55
"homepage": "https://github.com/js-data/js-data-adapter",
66
"repository": {
77
"type": "git",
@@ -30,7 +30,7 @@
3030
"js-data": "^3.0.0-alpha.16"
3131
},
3232
"devDependencies": {
33-
"babel-core": "6.6.5",
33+
"babel-core": "6.7.0",
3434
"babel-preset-es2015-rollup": "1.1.1",
3535
"js-data-repo-tools": "0.2.0",
3636
"rollup": "0.25.4",

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,10 @@ addHiddenPropsToTarget(Adapter.prototype, {
617617
const IDs = records.map(function (record) {
618618
return self.makeHasManyForeignKey(mapper, def, record)
619619
})
620-
const query = {}
621-
const criteria = query[def.foreignKey] = {}
620+
const query = {
621+
where: {}
622+
}
623+
const criteria = query.where[def.foreignKey] = {}
622624
if (singular) {
623625
// more efficient query when we only have one record
624626
criteria['=='] = IDs[0]

0 commit comments

Comments
 (0)