Last active
November 4, 2015 15:08
-
-
Save fariszacina/ec0e51de73649b9eb500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function bookApartment(req, res, next) { | |
| try { | |
| let data = await booking.create(req.booking); | |
| let result = await notifier.sendBookingConfirmation(data)); | |
| await statistics.log(result)); | |
| await log.debug('booking-succeeded'); | |
| res.send(200); | |
| } catch(err) { | |
| next(err) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment