ti2-tourplan 1.0.24 → 1.0.26
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 +2 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -288,7 +288,7 @@ class Plugin {
|
|
|
288
288
|
const allotmentResponse = [];
|
|
289
289
|
allotment.forEach(currentAllotment => {
|
|
290
290
|
const appliesToCode = R.path(['AllocationAppliesTo', 0, 'AllocationType', 0], currentAllotment);
|
|
291
|
-
const optionCodes = R.
|
|
291
|
+
const optionCodes = R.pathOr([], ['AllocationAppliesTo', 0, 'OptionCode'], currentAllotment);
|
|
292
292
|
const supplierCode = R.path(['SupplierCode', 0], currentAllotment);
|
|
293
293
|
const appliesTo = {
|
|
294
294
|
S: 'Supplier',
|
|
@@ -364,14 +364,7 @@ class Plugin {
|
|
|
364
364
|
xmlOptions: hostConnectXmlOptions,
|
|
365
365
|
};
|
|
366
366
|
// use cache if we are getting the full list
|
|
367
|
-
const replyObj =
|
|
368
|
-
? await this.callTourplan(payload)
|
|
369
|
-
: await this.cache.getOrExec({
|
|
370
|
-
fnParams: [model],
|
|
371
|
-
fn: () => this.callTourplan(payload),
|
|
372
|
-
ttl: 60 * 60 * 24, // 24 hours
|
|
373
|
-
forceRefresh: Boolean(forceRefresh),
|
|
374
|
-
});
|
|
367
|
+
const replyObj = await this.callTourplan(payload);
|
|
375
368
|
let products = [];
|
|
376
369
|
if (replyObj === 'useFixture') {
|
|
377
370
|
products = require('./__fixtures__/fullacoptionlist.json');
|