Changed the data field from Client WebHook

The value correct is the value associated with the event, not the data
attached to the subscription.
This commit is contained in:
claudemiro
2015-01-13 00:38:48 -03:00
parent c125bc7206
commit be66978479
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ func (c *Channel) Publish(a *App, event RawEvent, ignore string) error {
} else {
// Webhook
if strings.HasPrefix(event.Event, "client-") {
a.TriggerClientEventHook(c, subs, event.Event)
a.TriggerClientEventHook(c, subs, event.Event, v)
}
}
}