Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Oct 3, 2022
1 parent 340c2c3 commit 712b8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/sentry-mattermost/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const MATTERMOST_WEBHOOK_URL = process.env.MATTERMOST_WEBHOOK_URL;

const forwardSentryEvent = (payload, channel) => {
console.log(JSON.stringify(payload));
const event = payload.data.event;
const event = payload.data ? payload.data.event : payload.event;
const markdown = `
:warning: **${event.title}** [${event.environment}]
Expand Down

0 comments on commit 712b8ff

Please sign in to comment.