ti2-tourplan 1.0.53 → 1.0.55

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 CHANGED
@@ -478,7 +478,10 @@ class Plugin {
478
478
  const replyObj = optionId
479
479
  ? await this.callTourplan(payload)
480
480
  : await this.cache.getOrExec({
481
- fnParams: [model],
481
+ // goway and pdnz uses the same AgentID and Password for agents
482
+ // but their endpoint is different
483
+ // so they had been overwritting each other's cache
484
+ fnParams: [model, hostConnectEndpoint],
482
485
  fn: () => this.callTourplan(payload),
483
486
  ttl: 60 * 60 * 2, // 2 hours
484
487
  forceRefresh: Boolean(forceRefresh),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -73,7 +73,7 @@ const translateTPOption = ({ optionsGroupedBySupplierId, supplierData }) => {
73
73
  minAge: R.path(['OptGeneral', 'Infant_From'], option),
74
74
  maxAge: R.path(['OptGeneral', 'Infant_To'], option),
75
75
  },
76
- ...['Single', 'Twin', 'Double', 'Quad'].reduce((acc, roomType) => {
76
+ ...['Single', 'Twin', 'Triple', 'Double', 'Quad'].reduce((acc, roomType) => {
77
77
  const unitAvail = R.path(['OptGeneral', `${roomType}_Avail`], option);
78
78
  const unitMax = R.path(['OptGeneral', `${roomType}_Max`], option);
79
79
  const unitAdMax = R.path(['OptGeneral', `${roomType}_Ad_Max`], option);