Specify names of new item event fields
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b3ecad3c92
commit
f8b9003c36
|
@ -642,8 +642,8 @@ func (b *memoryBackend) channelAddItem(channel string, item microsub.Item) error
|
||||||
added, err := timelineBackend.AddItem(item)
|
added, err := timelineBackend.AddItem(item)
|
||||||
|
|
||||||
type newItemMessage struct {
|
type newItemMessage struct {
|
||||||
Item microsub.Item
|
Item microsub.Item `json:"item"`
|
||||||
Channel string
|
Channel string `json:"channel"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sent message to Server-Sent-Events
|
// Sent message to Server-Sent-Events
|
||||||
|
|
Loading…
Reference in New Issue
Block a user