feat: ignore feed errors within 9 hours

This commit is contained in:
DIYgod 2024-09-03 20:45:54 +08:00
parent 841f445403
commit b71926ec28
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ class FeedActions {
set((state) =>
produce(state, (state) => {
for (const feed of feeds) {
if (feed.errorAt && new Date(feed.errorAt).getTime() > Date.now() - 1000 * 60 * 60 * 9) {
feed.errorAt = null
}
if (feed.id) {
state.feeds[feed.id] = feed
} else {