From 63344348dfab449b4e13d37a45099dc14528e394 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sun, 1 May 2022 13:28:12 -0400 Subject: [PATCH] Fix notification categories for watchers --- internal/worker/subreddits.go | 2 +- internal/worker/trending.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/worker/subreddits.go b/internal/worker/subreddits.go index 673c98a..da742b5 100644 --- a/internal/worker/subreddits.go +++ b/internal/worker/subreddits.go @@ -438,7 +438,7 @@ func payloadFromPost(post *reddit.Thing) *payload.Payload { payload := payload. NewPayload(). AlertSummaryArg(post.Subreddit). - Category("post-watch"). + Category("subreddit-watch"). Custom("post_title", post.Title). Custom("post_id", post.ID). Custom("subreddit", post.Subreddit). diff --git a/internal/worker/trending.go b/internal/worker/trending.go index ff29662..09af392 100644 --- a/internal/worker/trending.go +++ b/internal/worker/trending.go @@ -323,7 +323,7 @@ func payloadFromTrendingPost(post *reddit.Thing) *payload.Payload { AlertTitle(title). AlertBody(post.Title). AlertSummaryArg(post.Subreddit). - Category("post-watch"). + Category("trending-post"). Custom("post_title", post.Title). Custom("post_id", post.ID). Custom("subreddit", post.Subreddit).