Skip to content

Commit

Permalink
fix: see event
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Sep 18, 2024
1 parent e99c5cb commit d68adfa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/api/slack/events/conversations/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ export const POST = async (req: NextRequest) => {
return NextResponse.json({ challenge });
}

if (type === 'url_verification') {
return NextResponse.json({ challenge });
}

if (type === 'event_callback' && event?.type === 'message') {
console.log('New message:', event.text);
console.log('New message:', event);

return NextResponse.json({ status: 'Message stored successfully' });
}
Expand Down

0 comments on commit d68adfa

Please sign in to comment.