зеркало из https://github.com/nextcloud/activity.git
Only select neccessary columns
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
cbae05ad31
Коммит
71ecbd6c30
|
@ -283,7 +283,7 @@ class Data {
|
|||
protected function setOffsetFromSince(IQueryBuilder $query, $user, $since, $sort) {
|
||||
if ($since) {
|
||||
$queryBuilder = $this->connection->getQueryBuilder();
|
||||
$queryBuilder->select('*')
|
||||
$queryBuilder->select(['affecteduser', 'timestamp'])
|
||||
->from('activity')
|
||||
->where($queryBuilder->expr()->eq('activity_id', $queryBuilder->createNamedParameter((int) $since)));
|
||||
$result = $queryBuilder->execute();
|
||||
|
|
Загрузка…
Ссылка в новой задаче