Moved channels to new system, fixed change insert not working.
the build was successful

This commit is contained in:
2019-06-24 20:30:14 +02:00
parent f46b6f0774
commit acb6b637a5
16 changed files with 498 additions and 97 deletions
+8 -8
View File
@@ -76,28 +76,28 @@ func (change *Change) Objects() []interface{} {
data := make([]interface{}, 0, 8)
for _, log := range change.Logs {
data = append(data, &log)
data = append(data, log)
}
for _, channel := range change.Channels {
data = append(data, &channel)
data = append(data, channel)
}
for _, character := range change.Characters {
data = append(data, &character)
data = append(data, character)
}
for _, post := range change.Posts {
data = append(data, &post)
data = append(data, post)
}
for _, story := range change.Stories {
data = append(data, &story)
data = append(data, story)
}
for _, tag := range change.Tags {
data = append(data, &tag)
data = append(data, tag)
}
for _, chapter := range change.Chapters {
data = append(data, &chapter)
data = append(data, chapter)
}
for _, comment := range change.Comments {
data = append(data, &comment)
data = append(data, comment)
}
return data
+5 -4
View File
@@ -17,10 +17,11 @@ func (*Channel) IsChangeObject() {
// ChannelFilter is a filter for channel listing.
type ChannelFilter struct {
Logged *bool `json:"logged"`
EventName *string `json:"eventName"`
LocationName *string `json:"locationName"`
Limit int `json:"limit"`
Names []string `json:"names"`
Logged *bool `json:"logged"`
EventName *string `json:"eventName"`
LocationName *string `json:"locationName"`
Limit int `json:"limit"`
}
// ChannelUpdate is a filter for channel listing.