- commit
- 2bc909f
- parent
- 2fd228b
- author
- Eric Bower
- date
- 2024-12-13 20:09:50 +0000 UTC
fix(feeds): move last digest to end of cron
1 files changed,
+6,
-1
+6,
-1
1@@ -180,7 +180,6 @@ func (f *Fetcher) RunPost(logger *slog.Logger, user *db.User, post *db.Post) err
2 expiresAt := time.Now().AddDate(0, 6, 0)
3 post.ExpiresAt = &expiresAt
4 }
5- post.Data.LastDigest = &now
6 _, err = f.db.UpdatePost(post)
7 if err != nil {
8 return err
9@@ -245,6 +244,12 @@ Also, we have centralized logs in our pico.sh TUI that will display realtime fee
10 }
11 }
12
13+ post.Data.LastDigest = &now
14+ _, err = f.db.UpdatePost(post)
15+ if err != nil {
16+ return err
17+ }
18+
19 return nil
20 }
21