ti2-bokun 1.0.13 → 1.0.14
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 +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2031,7 +2031,12 @@ class Plugin {
|
|
|
2031
2031
|
|
|
2032
2032
|
const items = R.path(['data', 'items'], response);
|
|
2033
2033
|
const bookingIds = Array.isArray(items)
|
|
2034
|
-
? R.uniq(
|
|
2034
|
+
? R.uniq(
|
|
2035
|
+
items
|
|
2036
|
+
.filter(item => item && item.externalBookingReference === reference)
|
|
2037
|
+
.map(item => item.id)
|
|
2038
|
+
.filter(Boolean),
|
|
2039
|
+
)
|
|
2035
2040
|
: [];
|
|
2036
2041
|
|
|
2037
2042
|
if (bookingIds.length === 0) {
|