Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Nov 2, 2023
1 parent 8d288fb commit 3e54326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/eventbrite-webhooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@ Resources:
console.info(`Webhook triggered by object ${orderApiUrl}`);
const reqUrl = `${orderApiUrl}?${TOKEN}&expand=event,attendees`;
const order = await httpGet(reqUrl);
console.log(JSON.stringify({order}));
return order;
}
async function getEvent(order) {
const reqUrl = `${order.event.resource_uri}?${TOKEN}&expand=ticket_classes,venue`;
const event = await httpGet(reqUrl);
console.log(JSON.stringify({event}));
return event;
}
Expand Down

0 comments on commit 3e54326

Please sign in to comment.