$1 {{method}}: async req => { // eslint-disable-line try { const payload = {}; app.pubsub.writeMessageToTopic(JSON.stringify(payload), '{{method}}').then(res => app.logger.info(res)); } catch (e) { const err = Boom.badData(e.message); app.pubsub.writeMessageToTopic(JSON.stringify(err), '{{method}}').then(res => app.logger.error(res)); } },