ti2 1.0.83 → 1.0.84
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/controllers/bookings.js +3 -0
- package/package.json +1 -1
package/controllers/bookings.js
CHANGED
|
@@ -99,6 +99,9 @@ const $bookingsProductSearch = plugins => async ({
|
|
|
99
99
|
}) => {
|
|
100
100
|
const app = plugins.find(({ name }) => name === appKey);
|
|
101
101
|
// const app = load(appKey);
|
|
102
|
+
assert(userId, 'userId is required');
|
|
103
|
+
assert(appKey, 'appKey is required');
|
|
104
|
+
assert(app.searchProducts || app.searchProductsForItinerary, `searchProducts or searchProductsForItinerary is not available for ${appKey}`);
|
|
102
105
|
const userAppKeys = (await UserAppKey.findOne({
|
|
103
106
|
where: {
|
|
104
107
|
userId,
|