ti2-tourplan 1.0.66 → 1.0.67
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -486,12 +486,12 @@ class BuyerPlugin {
|
|
|
486
486
|
R.values,
|
|
487
487
|
R.groupBy(R.path(['OptGeneral', 'SupplierId'])),
|
|
488
488
|
root => {
|
|
489
|
-
|
|
489
|
+
let options = R.pathOr([], ['OptionInfoReply', 'Option'], root);
|
|
490
490
|
// due to the new parser, single option will be returned as an object
|
|
491
491
|
// instead of an array
|
|
492
|
-
if (Array.isArray(options))
|
|
492
|
+
if (!Array.isArray(options)) options = [options];
|
|
493
493
|
console.log(`got ${options.length} options for serviceCode ${serviceCode}`);
|
|
494
|
-
return
|
|
494
|
+
return options;
|
|
495
495
|
},
|
|
496
496
|
), getOptionsReply);
|
|
497
497
|
const productsForServiceCode = await Promise.map(
|