From 119ec8cc52ff0e4b681584e3e8fc1d6884d8b938 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Fri, 24 Mar 2023 13:37:35 -0400 Subject: [PATCH] fix query for watchers --- internal/repository/postgres_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/postgres_watcher.go b/internal/repository/postgres_watcher.go index a17c618..745c123 100644 --- a/internal/repository/postgres_watcher.go +++ b/internal/repository/postgres_watcher.go @@ -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) {