aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAKP <tom@tdpain.net>2022-04-06 11:47:08 +0100
committerAKP <tom@tdpain.net>2022-04-06 11:47:08 +0100
commit6436813cdc9457056e1ad4d2b7d7ff9d7703e9ac (patch)
treeca7aa3048fe7572ab6ee7fb327172684d1bd1921
parent02779167e639ec9538c89eb17b40aaffcfae286a (diff)
Remove hour offset on watcher
Signed-off-by: AKP <tom@tdpain.net>
-rw-r--r--walrss/internal/rss/watcher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/walrss/internal/rss/watcher.go b/walrss/internal/rss/watcher.go
index 5a000cb..f94eef3 100644
--- a/walrss/internal/rss/watcher.go
+++ b/walrss/internal/rss/watcher.go
@@ -23,7 +23,7 @@ func StartWatcher(st *state.State) {
func runFeedProcessor(st *state.State, currentTime time.Time) {
log.Info().Str("location", "feed watcher").Msg("running hourly job")
- if err := ProcessFeeds(st, db.SendDayFromWeekday(currentTime.Weekday()), currentTime.Hour()+1); err != nil {
+ if err := ProcessFeeds(st, db.SendDayFromWeekday(currentTime.Weekday()), currentTime.Hour()); err != nil {
log.Error().Err(err).Str("location", "feed watcher").Send()
}
}