Skip to content

Commit

Permalink
feat: add comment metadata to background task payload
Browse files Browse the repository at this point in the history
- Updated `backgroundTaskMiddleware.ts` to include `pendingComment.metadata.content` in the task payload.
- Enhances the middleware's ability to process comment-related tasks with more contextual metadata.
  • Loading branch information
cswni committed Dec 20, 2024
1 parent 00e1cb7 commit 9133f94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redux/middlewares/backgroundTaskMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const processBackgroundComment = (store: any, data: any) => {
displayName: owner?.displayName,
avatar: owner?.avatar,
}, {
comment: pendingComment?.metadata?.content,
root_id: root,
comment_id: commentOn,
rawDescription: `${sessionData?.profile?.metadata?.displayName} left a comment`,
Expand Down

0 comments on commit 9133f94

Please sign in to comment.