Skip to content

Commit

Permalink
fix: Added Error log
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Oct 2, 2024
1 parent 15b6b61 commit 2e95c11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/slack/syncs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const validateMessageSlackEvent = (event: MessageEvent) => {
typeof event.channel !== 'string' ||
typeof event.text !== 'string'
) {
console.log(event);
throw createError({
title: 'Invalid Slack event',
message: 'Event user or channel is invalid',
Expand All @@ -31,6 +32,7 @@ export const validateReactionSlackEvent = (event: ReactionAddedEvent) => {
typeof event.reaction !== 'string' ||
typeof event.item.channel !== 'string'
) {
console.log(event);
throw createError({
title: 'Invalid Slack event',
message: 'Event user, reaction, or channel is invalid',
Expand Down

0 comments on commit 2e95c11

Please sign in to comment.