@barchart/portfolio-api-common 1.0.56 → 1.0.57

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.
@@ -137,7 +137,7 @@ module.exports = (() => {
137
137
 
138
138
  setPrice(symbol, price) {
139
139
  if (this._symbols.hasOwnProperty(symbol)) {
140
- this._symbols.forEach(item => item.setPrice(price));
140
+ this._symbols[symbol].forEach(item => item.setPrice(price));
141
141
  }
142
142
  }
143
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -652,7 +652,7 @@ module.exports = (() => {
652
652
 
653
653
  setPrice(symbol, price) {
654
654
  if (this._symbols.hasOwnProperty(symbol)) {
655
- this._symbols.forEach(item => item.setPrice(price));
655
+ this._symbols[symbol].forEach(item => item.setPrice(price));
656
656
  }
657
657
  }
658
658