summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2021-02-02 20:40:58 +0100
committeranoy <anoymouserver@users.noreply.github.com>2021-02-02 20:50:34 +0100
commite601f07ee6a85e44c89d80855fc2aa2ab98f9774 (patch)
tree81250cd7ba58a321557740ad468cdf9ebcf606ed /lib
parentac4a42cb2a0c57fe4086ef78292ce63118dcee7f (diff)
fix articlesPerUpdate alias
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/ItemMapperV2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/ItemMapperV2.php b/lib/Db/ItemMapperV2.php
index 9b69cc9f2..1525d6941 100644
--- a/lib/Db/ItemMapperV2.php
+++ b/lib/Db/ItemMapperV2.php
@@ -150,7 +150,7 @@ class ItemMapperV2 extends NewsMapperV2
{
$feedQb = $this->db->getQueryBuilder();
$feedQb->select('feed_id', $feedQb->func()->count('*', 'itemCount'))
- ->addSelect($feedQb->func()->max('feeds.articles_per_update', 'articlesPerUpdate'))
+ ->selectAlias($feedQb->func()->max('feeds.articles_per_update'), 'articlesPerUpdate')
->from($this->tableName, 'items')
->innerJoin('items', FeedMapperV2::TABLE_NAME, 'feeds', 'items.feed_id = feeds.id')
->groupBy('feed_id');