ti2-tourplan 1.0.40 → 1.0.41

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.
Files changed (2) hide show
  1. package/index.js +6 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -104,6 +104,11 @@ class Plugin {
104
104
  regExp: /.+/,
105
105
  },
106
106
  });
107
+ this.cacheSettings = {
108
+ bookingsProductSearch: {
109
+ skipTTL: true,
110
+ },
111
+ };
107
112
  this.callTourplan = async ({
108
113
  model,
109
114
  endpoint,
@@ -437,14 +442,7 @@ class Plugin {
437
442
  xmlOptions: hostConnectXmlOptions,
438
443
  };
439
444
  // use cache if we are getting the full list
440
- const replyObj = optionId
441
- ? await this.callTourplan(payload)
442
- : await this.cache.getOrExec({
443
- fnParams: [model],
444
- fn: () => this.callTourplan(payload),
445
- ttl: 60 * 60 * 24, // 24 hours
446
- forceRefresh: Boolean(forceRefresh),
447
- });
445
+ const replyObj = await this.callTourplan(payload);
448
446
  let products = [];
449
447
  if (replyObj === 'useFixture') {
450
448
  products = require('./__fixtures__/fullacoptionlist.json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {