Skip to content

Commit d078eba

Browse files
committed
Remove target user id from payload
1 parent b5d30aa commit d078eba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

event.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,9 @@ func (c *Client) SendUserCustomEvent(targetUserID string, event *UserCustomEvent
170170
}
171171

172172
req := struct {
173-
TargetUserID string `json:"target_user_id"`
174-
Event *UserCustomEvent `json:"event"`
173+
Event *UserCustomEvent `json:"event"`
175174
}{
176-
TargetUserID: targetUserID,
177-
Event: event,
175+
Event: event,
178176
}
179177

180178
p := path.Join("users", url.PathEscape(targetUserID), "event")

0 commit comments

Comments
 (0)