This commit is contained in:
Athou
2015-03-19 13:01:03 +01:00
parent 6fd11fcd56
commit c7ab179a9e
4 changed files with 3 additions and 19 deletions

View File

@@ -136,7 +136,7 @@ public class FeedQueues {
// update all feeds in the database
List<Feed> feeds = map.values().stream().filter(c -> config.getApplicationSettings().getHeavyLoad() ? !c.isUrgent() : true)
.map(c -> c.getFeed()).collect(Collectors.toList());
UnitOfWork.run(sessionFactory, () -> feedDAO.update(feeds));
UnitOfWork.run(sessionFactory, () -> feedDAO.saveOrUpdate(feeds));
}
/**