Skip to content

Commit 8d1b7e9

Browse files
committed
typo
1 parent 6ddfc10 commit 8d1b7e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function getFresh($columns = [])
272272

273273
// Null coalense only > 7.2
274274

275-
$aggregations = blank($this->aggregate['collumns']) ? [] : $this->aggregate['collumns'];
275+
$aggregations = blank($this->aggregate['columns']) ? [] : $this->aggregate['columns'];
276276

277277
if (in_array('*', $aggregations) && $function == 'count') {
278278
// When ORM is paginating, count doesnt need a aggregation, just a cursor operation
@@ -284,8 +284,8 @@ public function getFresh($columns = [])
284284
// Preserving format expected by framework
285285
$results = [
286286
[
287-
"_id" => null,
288-
"aggregate" => $totalResults
287+
'_id' => null,
288+
'aggregate' => $totalResults
289289
]
290290
];
291291
return $this->useCollections ? new Collection($results) : $results;

0 commit comments

Comments
 (0)