ti2-tourplan 1.0.25 → 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 +1 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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');
|