diff options
author | anoy <anoymouserver+github@mailbox.org> | 2021-02-03 19:45:03 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-02-04 09:03:06 +0100 |
commit | 5c7838e9bdd7081008483913def07a3233daa9fd (patch) | |
tree | 8efc0cb3389a300a3bb4047a6e8b7b197e4ecd8f /lib/Db | |
parent | 7b7c6eb9368890c4fb042933809436db15fc6fc4 (diff) |
fix result ordering for purging query
updated_date is currently always NULL
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/ItemMapperV2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/ItemMapperV2.php b/lib/Db/ItemMapperV2.php index 1525d6941..ecc635e32 100644 --- a/lib/Db/ItemMapperV2.php +++ b/lib/Db/ItemMapperV2.php @@ -167,7 +167,7 @@ class ItemMapperV2 extends NewsMapperV2 ->from($this->tableName) ->where('feed_id = :feedId') ->andWhere('starred = false') - ->orderBy('updated_date', 'DESC'); + ->orderBy('last_modified', 'DESC'); if ($removeUnread === false) { $rangeQuery->andWhere('unread = false'); |