mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-14 07:57:44 +00:00
fix query for watchers
This commit is contained in:
parent
b6cf6b6687
commit
119ec8cc52
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ func (p *postgresWatcherRepository) GetByTypeAndWatcheeID(ctx context.Context, t
|
||||||
devices_accounts.watcher_notifiable = TRUE AND
|
devices_accounts.watcher_notifiable = TRUE AND
|
||||||
devices_accounts.global_mute = FALSE`
|
devices_accounts.global_mute = FALSE`
|
||||||
|
|
||||||
return p.fetch(ctx, query, typ, id)
|
return p.fetch(ctx, query, int64(typ), id)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *postgresWatcherRepository) GetByTrendingSubredditID(ctx context.Context, id int64) ([]domain.Watcher, error) {
|
func (p *postgresWatcherRepository) GetByTrendingSubredditID(ctx context.Context, id int64) ([]domain.Watcher, error) {
|
||||||
|
|
Loading…
Reference in a new issue