Fix auxiliary command

This commit is contained in:
Ben van Hartingsveldt 2025-05-25 20:31:30 +02:00
parent c4f68fef07
commit 8a43630ba9
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB

View file

@ -1,15 +1,15 @@
<?php
namespace App\Console\Commands;
use App\Models\Address;
use App\Models\TagAddressRequest;
use DateInterval;
use DateTime;
use DateTimeZone;
use Exception;
use PDO;
use App\Models\Address;
use App\Models\TagAddressRequest;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
@ -43,15 +43,12 @@ class AuxCommand extends Command{
*/
protected $signature = 'explorer:aux {function?}';
public function __construct(){
parent::__construct();
self::$rpcurl = config('lbry.rpc_url');
}
/**
* Execute the console command.
*/
public function handle(): void{
self::$rpcurl = config('lbry.rpc_url');
$function = $this->argument('function');
if($function){
$this->$function();
@ -173,7 +170,7 @@ class AuxCommand extends Command{
}
}
$btrxjson = json_decode(self::curl_get(self::bittrex));
$btrxjson = null; //TODO json_decode(self::curl_get(self::bittrex));
$blckjson = json_decode(self::curl_get(self::blockchainticker));
if ($btrxjson) {