@barchart/portfolio-client-js 1.1.51 → 1.1.52
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.
- package/example/example.js +1 -1
- package/lib/gateway/PortfolioGateway.js +6 -6
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/example/example.js
CHANGED
|
@@ -714,13 +714,13 @@ module.exports = (() => {
|
|
|
714
714
|
|
|
715
715
|
const updatePositionRequestInterceptor = (request) => {
|
|
716
716
|
return FailureReason.validateSchema(PositionSchema.UPDATE, request.data)
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
717
|
+
.then(() => {
|
|
718
|
+
return Promise.resolve(request);
|
|
719
|
+
}).catch((e) => {
|
|
720
|
+
console.error('Error serializing data to update a position', e);
|
|
721
721
|
|
|
722
|
-
|
|
723
|
-
|
|
722
|
+
return Promise.reject();
|
|
723
|
+
});
|
|
724
724
|
};
|
|
725
725
|
|
|
726
726
|
const responseInterceptorForPortfolioDeserialization = ResponseInterceptor.fromDelegate((response, ignored) => {
|
package/lib/index.js
CHANGED