diff --git a/feeds/cron.go b/feeds/cron.go index b1b55708..612ab291 100644 --- a/feeds/cron.go +++ b/feeds/cron.go @@ -180,7 +180,6 @@ func (f *Fetcher) RunPost(logger *slog.Logger, user *db.User, post *db.Post) err expiresAt := time.Now().AddDate(0, 6, 0) post.ExpiresAt = &expiresAt } - post.Data.LastDigest = &now _, err = f.db.UpdatePost(post) if err != nil { return err @@ -245,6 +244,12 @@ Also, we have centralized logs in our pico.sh TUI that will display realtime fee } } + post.Data.LastDigest = &now + _, err = f.db.UpdatePost(post) + if err != nil { + return err + } + return nil }