Add entries storage error to feed errors count
This commit is contained in:
parent
a614f98063
commit
85d48c8a71
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ func (h *Handler) RefreshFeed(userID, feedID int64) error {
|
|||
|
||||
// We don't update existing entries when the crawler is enabled (we crawl only inexisting entries).
|
||||
if storeErr := h.store.UpdateEntries(originalFeed.UserID, originalFeed.ID, originalFeed.Entries, !originalFeed.Crawler); storeErr != nil {
|
||||
originalFeed.WithError(storeErr.Error())
|
||||
h.store.UpdateFeed(originalFeed)
|
||||
return storeErr
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue