Skip to content

Commit

Permalink
Merge pull request #42 from interactivethings/feat/team-communication
Browse files Browse the repository at this point in the history
fix: Added Error log
  • Loading branch information
noahonyejese authored Oct 2, 2024
2 parents a217377 + 2e95c11 commit 04100db
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 04100db

Please sign in to comment.