Send parent id and comment text to internal-apis for notifications
This commit is contained in:
parent
1c3a25f82d
commit
c2230cdefb
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ def create_notification_batch(action: str, comments: List[dict]) -> List[dict]:
|
||||||
}
|
}
|
||||||
if comment.get('channel_id'):
|
if comment.get('channel_id'):
|
||||||
event['channel_id'] = comment['channel_id']
|
event['channel_id'] = comment['channel_id']
|
||||||
|
if comment.get('parent_id'):
|
||||||
|
event['parent_id'] = comment['parent_id']
|
||||||
|
if comment.get('comment'):
|
||||||
|
event['comment'] = comment['comment']
|
||||||
events.append(event)
|
events.append(event)
|
||||||
return events
|
return events
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue