Skip to content

Commit

Permalink
fix: SDK-152
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Nov 15, 2019
1 parent 3df6361 commit a1c4cf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const cookieModifierSymbol: any = Symbol.for('cookieModifier');

traverson['registerMediaType'](HalAdapter.mediaType, HalAdapter);

validator.setLoggingFunction(() => {});
validator.setLoggingFunction(() => { });

/**
* Each API connector Class inherits directly from Core class. You cannot instantiate Core
Expand Down Expand Up @@ -613,9 +613,9 @@ export default class Core {
if (!options) {
options = {};
}

options._list = true;

if (!options.doNotSendList) {
options._list = true;
}
return this.follow(this[relationsSymbol][relation].relation);
})
.then((request) => {
Expand Down
6 changes: 4 additions & 2 deletions src/resources/Resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const relationsSymbol: any = Symbol.for('relations');
const originalSymbol: any = Symbol.for('original');

traverson.registerMediaType(HalAdapter.mediaType, HalAdapter);
validator.setLoggingFunction(() => {});
validator.setLoggingFunction(() => { });

interface Resource {
[key: string]: any;
Expand Down Expand Up @@ -481,7 +481,9 @@ class Resource {
options = {};
}

options._list = true;
if (!options.doNotSendList) {
options._list = true;
}

return this.newRequest().follow(this[relationsSymbol][relation].relation);
})
Expand Down
1 change: 1 addition & 0 deletions src/resources/datamanager/DataManagerResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class DataManagerResource extends Resource {
createRelation: false,
createTemplateModifier: '',
id: 'assetID',
doNotSetList: true,
additionalTemplateParam: 'dataManagerID',
ResourceClass: AssetResource,
ListClass: AssetList,
Expand Down

0 comments on commit a1c4cf4

Please sign in to comment.