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:
@@ -46,5 +46,6 @@ class CacheRecommendedFees extends Command
|
||||
]);
|
||||
|
||||
cache()->put('mempool-weather', $result['choices'][0]['text'], now()->addMinutes(62));
|
||||
cache()->put('mempool-weather-changed', now()->toDateTimeString(), now()->addMinutes(62));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ class MempoolWeather extends Component
|
||||
public $hourFee;
|
||||
public $economyFee;
|
||||
public $minimumFee;
|
||||
public $changed;
|
||||
|
||||
public function mount()
|
||||
{
|
||||
@@ -32,6 +33,7 @@ class MempoolWeather extends Component
|
||||
$this->hourFee = $result['hourFee'];
|
||||
$this->economyFee = $result['economyFee'];
|
||||
$this->minimumFee = $result['minimumFee'];
|
||||
$this->changed = cache()->get('mempool-weather-changed');
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
||||
Reference in New Issue
Block a user