diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-12-06 13:47:12 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-12-06 13:47:12 -0100 |
commit | 296f8b3540847b25926358f9e2d25056d2b59bca (patch) | |
tree | 0ba3cd67b7d2e74a70a94ff0dc91cef93ab7ad6f | |
parent | 33931508ddddda3c0f3c216cb59a8ac0dcace0c9 (diff) |
small fix
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Cron/Queue.php | 2 | ||||
-rw-r--r-- | lib/Db/FollowsRequest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Cron/Queue.php b/lib/Cron/Queue.php index e63f8383..44438df8 100644 --- a/lib/Cron/Queue.php +++ b/lib/Cron/Queue.php @@ -85,7 +85,7 @@ class Queue extends TimedJob { private function manageQueue() { - $requests = $this->queueService->getRequestStandby($total = 0); + $requests = $this->queueService->getRequestStandby(); $this->activityService->manageInit(); foreach ($requests as $request) { diff --git a/lib/Db/FollowsRequest.php b/lib/Db/FollowsRequest.php index 708f2513..fac47cdb 100644 --- a/lib/Db/FollowsRequest.php +++ b/lib/Db/FollowsRequest.php @@ -177,7 +177,7 @@ class FollowsRequest extends FollowsRequestBuilder { $this->limitToAccepted($qb, true); $this->leftJoinCacheActors($qb, 'actor_id'); $this->leftJoinDetails($qb, 'id', 'ca'); - $qb->orderBy('creation', 'desc'); + $qb->orderBy('f.creation', 'desc'); $follows = []; $cursor = $qb->execute(); @@ -201,7 +201,7 @@ class FollowsRequest extends FollowsRequestBuilder { $this->limitToAccepted($qb, true); $this->leftJoinCacheActors($qb, 'object_id'); $this->leftJoinDetails($qb, 'id', 'ca'); - $qb->orderBy('creation', 'desc'); + $qb->orderBy('f.creation', 'desc'); $follows = []; $cursor = $qb->execute(); |