Skip to content

Commit 2766c4c

Browse files
committed
Fixes tests.
1 parent 27f48f3 commit 2766c4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/locker/repository/Query/EloquentQueryRepository.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ public function aggregate($lrsId, array $pipeline) {
6262
return;
6363
}
6464

65-
$pipeline[0] = array_merge_recursive([
66-
'$match' => [
65+
$pipeline[0]['$match'] = [
66+
'$and' => [(object) $pipeline[0]['$match'], [
6767
self::LRS_ID_KEY => $lrsId,
6868
'active' => true
69-
]
70-
], $pipeline[0]);
69+
]]
70+
];
7171

7272
return Helpers::replaceHtmlEntity($this->db->statements->aggregate($pipeline), true);
7373
}

0 commit comments

Comments
 (0)