(A)wait your actions

All actions return a promise. Wait until the promise resolves, otherwise your hook won't work as expected.


You can use await because Cloudhooks is ES2016 compatible:

module.exports = async function (payload, actions) {
  const { data } = await actions.http.get('https://cloudhooks.dev');
}