ti2-tourplan 1.0.33 → 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 +2 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -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.33",
3
+ "version": "1.0.34",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {