ti2 1.0.70 → 1.0.72
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 +2 -1
- package/package.json +1 -1
package/controllers/bookings.js
CHANGED
|
@@ -227,7 +227,6 @@ const searchQuote = plugins => async (req, res, next) => {
|
|
|
227
227
|
}));
|
|
228
228
|
assert(userAppKeys, 'could not find the app key');
|
|
229
229
|
const token = await userAppKeys.token;
|
|
230
|
-
assert(payload.id, 'the availability id is required');
|
|
231
230
|
const results = await app.searchQuote({
|
|
232
231
|
axios,
|
|
233
232
|
token,
|
|
@@ -370,6 +369,7 @@ const getCreateBookingFields = plugins => async (req, res, next) => {
|
|
|
370
369
|
const {
|
|
371
370
|
axios,
|
|
372
371
|
params: { appKey, userId, hint },
|
|
372
|
+
query,
|
|
373
373
|
body: payload,
|
|
374
374
|
} = req;
|
|
375
375
|
try {
|
|
@@ -389,6 +389,7 @@ const getCreateBookingFields = plugins => async (req, res, next) => {
|
|
|
389
389
|
axios,
|
|
390
390
|
token,
|
|
391
391
|
payload,
|
|
392
|
+
query,
|
|
392
393
|
typeDefsAndQueries,
|
|
393
394
|
});
|
|
394
395
|
return res.json(results);
|