fix group read
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user