fix filter last_triggered not updating

This commit is contained in:
Andrew Dolgov 2022-01-25 22:33:13 +03:00
parent 56fd06d611
commit c57ebf2c10
1 changed files with 2 additions and 1 deletions

View File

@ -847,7 +847,8 @@ class RSSUtils {
if (count($matched_filter_ids) > 0) { if (count($matched_filter_ids) > 0) {
$filter_objs = ORM::for_table('ttrss_filters2') $filter_objs = ORM::for_table('ttrss_filters2')
->where('owner_uid', $feed_obj->owner_uid) ->where('owner_uid', $feed_obj->owner_uid)
->where_in('id', $matched_filter_ids); ->where_in('id', $matched_filter_ids)
->find_many();
foreach ($filter_objs as $filter_obj) { foreach ($filter_objs as $filter_obj) {
$filter_obj->set('last_triggered', Db::NOW()); $filter_obj->set('last_triggered', Db::NOW());