tripstorekrabi-shared 1.21.8 → 1.21.9

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/ota.js +2 -2
  2. package/package.json +1 -1
package/ota.js CHANGED
@@ -1,4 +1,4 @@
1
- export function isCommissionable(operatorId, booking, otas, defaultValue = true) {
1
+ export function isCommissionable(operatorId, booking, otas) {
2
2
  let ota = otas.find((item) => booking.referenceNumber.startsWith(item.bookingPrefix));
3
3
 
4
4
  // stop checking if it's not an OTA booking
@@ -20,5 +20,5 @@ export function isCommissionable(operatorId, booking, otas, defaultValue = true)
20
20
  );
21
21
  }
22
22
 
23
- return account?.commissionable ?? defaultValue;
23
+ return account?.commissionable ?? true;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.21.8",
3
+ "version": "1.21.9",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {