Skip to content

Commit dd7c555

Browse files
committed
Update Query.php
1 parent 50e70cc commit dd7c555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Query extends Component implements QueryInterface
6666
* @return Connection connection instance.
6767
*/
6868
public function getDb($db = null){
69-
return $db === null ? $db : Yii::$app->get('mongodb');
69+
return $db === null ? Yii::$app->get('mongodb') : $db;
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)