@barchart/portfolio-api-common 1.0.242 → 1.0.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -522,7 +522,7 @@ module.exports = (() => {
522
522
  getParentGroup(group) {
523
523
  assert.argumentIsRequired(group, 'group', PositionGroup, 'PositionGroup');
524
524
 
525
- return findParentGroup.call(this, candidate => true);
525
+ return findParentGroup.call(this, group, candidate => true);
526
526
  }
527
527
 
528
528
  /**
@@ -535,7 +535,7 @@ module.exports = (() => {
535
535
  getParentGroupForPortfolio(group) {
536
536
  assert.argumentIsRequired(group, 'group', PositionGroup, 'PositionGroup');
537
537
 
538
- return findParentGroup.call(this, candidate => candidate.definition.type === PositionLevelType.PORTFOLIO);
538
+ return findParentGroup.call(this, group, candidate => candidate.definition.type === PositionLevelType.PORTFOLIO);
539
539
  }
540
540
 
541
541
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.242",
3
+ "version": "1.0.243",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1321,7 +1321,7 @@ module.exports = (() => {
1321
1321
  getParentGroup(group) {
1322
1322
  assert.argumentIsRequired(group, 'group', PositionGroup, 'PositionGroup');
1323
1323
 
1324
- return findParentGroup.call(this, candidate => true);
1324
+ return findParentGroup.call(this, group, candidate => true);
1325
1325
  }
1326
1326
 
1327
1327
  /**
@@ -1334,7 +1334,7 @@ module.exports = (() => {
1334
1334
  getParentGroupForPortfolio(group) {
1335
1335
  assert.argumentIsRequired(group, 'group', PositionGroup, 'PositionGroup');
1336
1336
 
1337
- return findParentGroup.call(this, candidate => candidate.definition.type === PositionLevelType.PORTFOLIO);
1337
+ return findParentGroup.call(this, group, candidate => candidate.definition.type === PositionLevelType.PORTFOLIO);
1338
1338
  }
1339
1339
 
1340
1340
  /**