ti2-tourplan 1.0.32 → 1.0.34

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 +3 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -618,7 +618,7 @@ class Plugin {
618
618
  RateId: 'Default',
619
619
  SCUqty: chargeUnitQuanity || 1,
620
620
  AgentRef: reference,
621
- RoomConfigs: this.getRoomConfigs(paxConfigs),
621
+ RoomConfigs: this.getPaxConfigs(paxConfigs),
622
622
  },
623
623
  };
624
624
  const replyObj = await this.callTourplan({
@@ -690,11 +690,8 @@ class Plugin {
690
690
  try {
691
691
  reply = await this.callTourplan(getPayload('ListBookingsRequest', { [key]: bookingId }));
692
692
  } catch (err) {
693
- if (err.message.indexOf('not found') > -1) {
694
- reply = { ListBookingsReply: { BookingHeaders: { BookingHeader: [] } } };
695
- } else {
696
- throw err;
697
- }
693
+ console.log('error in searchBooking', err);
694
+ reply = { ListBookingsReply: { BookingHeaders: { BookingHeader: [] } } };
698
695
  }
699
696
  return reply;
700
697
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {