Skip to content

Commit 5f1ccab

Browse files
committed
Merge branch 'issue/aggregate' into develop
2 parents 9ddb913 + f6212ab commit 5f1ccab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/locker/repository/Query/EloquentQueryRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
use \Cache as IlluminateCache;
33
use \Carbon\Carbon as Carbon;
44
use \Locker\Helpers\Helpers as Helpers;
5+
use \Locker\Helpers\Exceptions as Exceptions;
56
use \Locker\Repository\Statement\EloquentRepository as StatementsRepo;
67

78
class EloquentQueryRepository implements QueryRepository {
@@ -154,7 +155,7 @@ public function aggregateObject($opts, array $match) {
154155
* @return [String] Ids of the inserted statements.
155156
*/
156157
public function insert(array $pipeline, array $opts) {
157-
$statements = $this->aggregate($opts['lrs_id'], $pipeline)['result'];
158+
$statements = $this->aggregate($opts, $pipeline)['result'];
158159

159160
if (count($statements) > 0) {
160161
$opts['authority'] = json_decode(json_encode($opts['client']['authority']));

0 commit comments

Comments
 (0)