Skip to content

Commit

Permalink
Add log for events
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamonin committed Dec 13, 2024
1 parent aff1a7c commit 76e75e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/faceitWebhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export default {
const eventHandler = eventHandlers.get(data.event);

if (eventHandler) {
console.log('eventHandler', JSON.stringify(data.payload));

await eventHandler(data);
} else {
console.warn(`Unhandled event type: ${data.event}`);
Expand Down

0 comments on commit 76e75e3

Please sign in to comment.