ti2 1.0.96 → 1.0.97
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 +9 -0
- package/package.json +1 -1
package/controllers/bookings.js
CHANGED
|
@@ -457,6 +457,15 @@ const createBooking = plugins => async (req, res, next) => {
|
|
|
457
457
|
typeDefsAndQueries,
|
|
458
458
|
requestId: req.requestId,
|
|
459
459
|
});
|
|
460
|
+
|
|
461
|
+
app.events.emit('bookingsCreateBooking', {
|
|
462
|
+
userId,
|
|
463
|
+
hint,
|
|
464
|
+
operationId: 'createBooking',
|
|
465
|
+
requestId: req.requestId,
|
|
466
|
+
pluginName: app.name,
|
|
467
|
+
payload: results,
|
|
468
|
+
});
|
|
460
469
|
return res.json(results);
|
|
461
470
|
} catch (err) {
|
|
462
471
|
return next(err);
|