mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
mempool weather added
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Console\Commands\MempoolSpace;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use OpenAI;
|
||||
|
||||
class CacheRecommendedFees extends Command
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Livewire\Banner;
|
||||
|
||||
use App\Console\Commands\MempoolSpace\CacheRecommendedFees;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Livewire\Component;
|
||||
@@ -21,7 +22,7 @@ class MempoolWeather extends Component
|
||||
if (cache()->has('mempool-weather')) {
|
||||
$this->weather = cache()->get('mempool-weather');
|
||||
} else {
|
||||
Artisan::call('test');
|
||||
Artisan::call(CacheRecommendedFees::class);
|
||||
$this->weather = cache()->get('mempool-weather');
|
||||
}
|
||||
$result = Http::get('https://mempool.space/api/v1/fees/recommended');
|
||||
|
||||
Reference in New Issue
Block a user