Skip to content

Commit

Permalink
Update Query.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ziaratban committed Oct 31, 2020
1 parent 50e70cc commit dd7c555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Query extends Component implements QueryInterface
* @return Connection connection instance.
*/
public function getDb($db = null){
return $db === null ? $db : Yii::$app->get('mongodb');
return $db === null ? Yii::$app->get('mongodb') : $db;
}

/**
Expand Down

0 comments on commit dd7c555

Please sign in to comment.