tripstorekrabi-shared 1.22.0 → 1.22.1

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 -1
  2. package/package.json +2 -2
package/ota.js CHANGED
@@ -10,7 +10,8 @@ export function isCommissionable(operatorId, booking, otas) {
10
10
  let account = (ota.accounts ?? []).find(
11
11
  (account) =>
12
12
  account.operators.find((item) => item.id === operatorId) &&
13
- (!booking.gygSupplierId || booking.gygSupplierId === account.gygSupplierId)
13
+ (!booking.gygSupplierId || booking.gygSupplierId === account.gygSupplierId) &&
14
+ (!booking.musementAccountEmail || booking.musementAccountEmail === account.loginEmail)
14
15
  );
15
16
 
16
17
  // find the default account where all operators apply
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "dayjs": "^1.11.18",
20
- "libphonenumber-js": "^1.12.24",
20
+ "libphonenumber-js": "^1.12.25",
21
21
  "nanoid": "^5.1.6"
22
22
  },
23
23
  "scripts": {