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:
parent
9c0f882ba0
commit
5cf504745b
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue