fix query for watchers

This commit is contained in:
Andre Medeiros 2023-03-24 13:37:35 -04:00
parent 9ccbb605b4
commit 586458a242
No known key found for this signature in database
GPG key ID: 38F11905BF87C320

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) {