fix group read

This commit is contained in:
Jay
2018-09-21 18:36:09 +08:00
parent d6af7b3ccb
commit cd877b21e3
5 changed files with 10 additions and 30 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ func (p *FacebookPage) GetGroups() (err error) {
left join "public"."line_group" g
on g.id = rt."line"
where
p.id = $1`
p.id = $1
and rt.facebook is not null`
err = x.Select(&p.Groups, query, p.ID)
return
}
+2 -1
View File
@@ -119,7 +119,8 @@ func (p *TwitchChannel) GetGroups() (err error) {
left join "public"."line_group" g
on g.id = rt.line
where
tw.id = $1`
tw.id = $1
and rt.twitch is not null`
err = x.Select(&p.Groups, query, p.ID)
return
}
+2 -1
View File
@@ -73,7 +73,8 @@ func (p *YoutubeChannel) GetGroups() (err error) {
left join "public"."line_group" g
on g.id = rt.line
where
yt.id = $1`
yt.id = $1
and rt.youtube is not null`
err = x.Select(&p.Groups, query, p.ID)
return
}