Specify names of new item event fields
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2019-08-18 13:46:37 +02:00
parent b3ecad3c92
commit f8b9003c36
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -642,8 +642,8 @@ func (b *memoryBackend) channelAddItem(channel string, item microsub.Item) error
added, err := timelineBackend.AddItem(item)
type newItemMessage struct {
Item microsub.Item
Channel string
Item microsub.Item `json:"item"`
Channel string `json:"channel"`
}
// Sent message to Server-Sent-Events