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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. 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(items.map(item => item && item.id).filter(Boolean))
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-bokun",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Bokun's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {