This commit is contained in:
benson
2025-03-26 21:59:18 +08:00
parent 777892e257
commit efb85ff22d
2 changed files with 5 additions and 4 deletions

View File

@@ -11,9 +11,10 @@ use Symfony\Component\Console\Output\OutputInterface;
class Aria2Command extends Base
{
public function __construct()
private $dbconn;
public function __construct(\OCP\IDBConnection $connection)
{
$this->dbconn = new DbHelper();
$this->dbconn = new DbHelper($connection);
parent::__construct();
}
protected function configure()