Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsaffari committed Jun 28, 2019
1 parent 6d02869 commit 8a1b7e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Persistor/Codeigniter/Codeigniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function setOptions(array $options)
$this->_TaskModel = new TaskModel($options);
$this->_TaskEntity = new $this->_TaskModel->returnType;

$this->_testConnection();
$this->_testConnection($options);

$this->_options = $options;

Expand Down Expand Up @@ -414,11 +414,11 @@ public function clearFailed()
*
* @throws \CodeigniterExt\Queue\Persistor\Codeigniter\DBConnecException
*/
protected function _testConnection()
protected function _testConnection(array $options)
{
try {

$db = \Config\Database::connect();
$db = \Config\Database::connect($options['db_group'],false);
$db->reconnect();

}
Expand Down

0 comments on commit 8a1b7e3

Please # to comment.