mirror of
https://github.com/owncast/owncast.git
synced 2024-10-22 20:45:58 +03:00
Do not send empty type when its not apropriate
This commit is contained in:
parent
9d0ae44c3c
commit
cf87f53da3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ type OutboundEvent interface {
|
|||
|
||||
// Event is any kind of event. A type is required to be specified.
|
||||
type Event struct {
|
||||
Type EventType `json:"type"`
|
||||
Type EventType `json:"type,omitempty"`
|
||||
Id string `json:"id"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue