1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Skip integrations if there are no entries to push

This commit is contained in:
Harry Cheng 2022-12-01 00:05:36 +08:00 committed by Frédéric Guillot
parent b4643fd27f
commit d9777f1439

View file

@ -107,7 +107,7 @@ func ProcessFeedEntries(store *storage.Storage, feed *model.Feed, user *model.Us
intg, err := store.Integration(feed.UserID) intg, err := store.Integration(feed.UserID)
if err != nil { if err != nil {
logger.Error("[Processor] Get integrations for user %d failed: %v; the refresh process will go on, but no integrations will run this time.", feed.UserID, err) logger.Error("[Processor] Get integrations for user %d failed: %v; the refresh process will go on, but no integrations will run this time.", feed.UserID, err)
} else if intg != nil { } else if intg != nil && len(entriesToPush) > 0 {
go func() { go func() {
integration.PushEntries(entriesToPush, intg) integration.PushEntries(entriesToPush, intg)
}() }()