@@ -12,10 +12,7 @@ import (
12
12
func queueMsgHandling (rc redis.Conn , c * Contact , m * Msg ) error {
13
13
channel := m .Channel ().(* Channel )
14
14
15
- // queue to mailroom
16
15
body := map [string ]any {
17
- "contact_id" : c .ID_ ,
18
- "org_id" : channel .OrgID_ ,
19
16
"channel_id" : channel .ID_ ,
20
17
"msg_id" : m .ID_ ,
21
18
"msg_uuid" : m .UUID (),
@@ -32,10 +29,11 @@ func queueMsgHandling(rc redis.Conn, c *Contact, m *Msg) error {
32
29
33
30
func queueChannelEvent (rc redis.Conn , c * Contact , e * ChannelEvent ) error {
34
31
body := map [string ]any {
35
- "org_id " : e . OrgID_ ,
36
- "contact_id " : e .ContactID_ ,
32
+ "event_id " : e . ID_ ,
33
+ "event_type " : e .EventType_ ,
37
34
"urn_id" : e .ContactURNID_ ,
38
35
"channel_id" : e .ChannelID_ ,
36
+ "optin_id" : e .OptInID_ ,
39
37
"extra" : e .Extra (),
40
38
"new_contact" : c .IsNew_ ,
41
39
"occurred_on" : e .OccurredOn_ ,
@@ -61,7 +59,7 @@ func queueChannelEvent(rc redis.Conn, c *Contact, e *ChannelEvent) error {
61
59
}
62
60
63
61
func queueMsgDeleted (rc redis.Conn , ch * Channel , msgID courier.MsgID , contactID ContactID ) error {
64
- return queueMailroomTask (rc , "msg_deleted" , ch .OrgID_ , contactID , map [string ]any {"org_id" : ch . OrgID_ , " msg_id" : msgID })
62
+ return queueMailroomTask (rc , "msg_deleted" , ch .OrgID_ , contactID , map [string ]any {"msg_id" : msgID })
65
63
}
66
64
67
65
// queueMailroomTask queues the passed in task to mailroom. Mailroom processes both messages and
0 commit comments