Skip to content
Snippets Groups Projects
Commit decf0875 authored by Christian Pointner's avatar Christian Pointner
Browse files

make sure playlist objects always contain the entries field

fixes #46
parent 6d702e5e
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ type Playlist struct {
PlayoutMode string `json:"playout-mode" gorm:"not null;default:'linear'"`
ShowName string `json:"show" gorm:"not null;index"`
Show Show `json:"-" gorm:"association_foreignkey:Name"`
Entries []PlaylistEntry `json:"entries,omitempty"`
Entries []PlaylistEntry `json:"entries"`
}
//****************
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment