fix query for watchers

This commit is contained in:
Andre Medeiros 2023-03-24 13:37:35 -04:00
parent b6cf6b6687
commit 119ec8cc52

View file

@ -151,7 +151,7 @@ func (p *postgresWatcherRepository) GetByTypeAndWatcheeID(ctx context.Context, t
devices_accounts.watcher_notifiable = TRUE AND
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) {