File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Jenssegers/Mongodb/Query Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ public function getFresh($columns = [])
272
272
273
273
// Null coalense only > 7.2
274
274
275
- $ aggregations = blank ($ this ->aggregate ['collumns ' ]) ? [] : $ this ->aggregate ['collumns ' ];
275
+ $ aggregations = blank ($ this ->aggregate ['columns ' ]) ? [] : $ this ->aggregate ['columns ' ];
276
276
277
277
if (in_array ('* ' , $ aggregations ) && $ function == 'count ' ) {
278
278
// When ORM is paginating, count doesnt need a aggregation, just a cursor operation
@@ -284,8 +284,8 @@ public function getFresh($columns = [])
284
284
// Preserving format expected by framework
285
285
$ results = [
286
286
[
287
- " _id " => null ,
288
- " aggregate " => $ totalResults
287
+ ' _id ' => null ,
288
+ ' aggregate ' => $ totalResults
289
289
]
290
290
];
291
291
return $ this ->useCollections ? new Collection ($ results ) : $ results ;
You can’t perform that action at this time.
0 commit comments