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 = [])
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 ;
You can’t perform that action at this time.
0 commit comments