Skip to content

Instantly share code, notes, and snippets.

@fariszacina
Last active November 4, 2015 15:08
Show Gist options
  • Select an option

  • Save fariszacina/ec0e51de73649b9eb500 to your computer and use it in GitHub Desktop.

Select an option

Save fariszacina/ec0e51de73649b9eb500 to your computer and use it in GitHub Desktop.
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