1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Add cli flag to reset all feed errors

This commit is contained in:
Frédéric Guillot 2018-06-30 14:22:45 -07:00
parent 9c0f882ba0
commit 5cf504745b
2 changed files with 12 additions and 0 deletions

View file

@ -273,3 +273,9 @@ func (s *Storage) RemoveFeed(userID, feedID int64) error {
return nil
}
// ResetFeedErrors removes all feed errors.
func (s *Storage) ResetFeedErrors() error {
_, err := s.db.Exec(`UPDATE feeds SET parsing_error_count=0, parsing_error_msg=''`)
return err
}