Skip to content

Commit

Permalink
fix: Added reactions variable
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Sep 19, 2024
1 parent 97bb928 commit 197d76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/api/slack/events/conversations/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const POST = async (req: NextRequest) => {
const reactionEmoji = emoji.get(event.reaction) || event.reaction;
await userRef.update({
...userData,
reactions: userData.reactions ? userData.reactions + 1 : 1,
lastReaction: reactionEmoji,
});
}
Expand Down
1 change: 1 addition & 0 deletions types/display-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type MetricTypes = {
messages: number;
lastMessage: number;
lastReaction: string;
reactions: number;
color: string;
connections: {
[key: string]: {
Expand Down

0 comments on commit 197d76c

Please sign in to comment.