Skip to content

Commit

Permalink
fix: Fixed Team communication data syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Sep 18, 2024
1 parent 65a459e commit 7c5976a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/api/slack/events/conversations/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ export const POST = async (req: NextRequest) => {
[event.channel]: data.connections[event.channel]
? {
messages: data.connections[event.channel].messages + 1,
characters: data.connections[event.channel].characters,
characters:
data.connections[event.channel].characters +
event.text.length,
}
: {
messages: data.connections[event.channel] + 1,
messages: 1,
characters: event.text.length,
},
},
Expand Down

0 comments on commit 7c5976a

Please sign in to comment.