Fix eldorado alert float print is incorrect
Was converting the value to int and the threshold with floatval only
This commit is contained in:
@@ -13,11 +13,12 @@ class EldoradoRobuxPriceNotification extends Notification {
|
||||
private float $threshold;
|
||||
private string $link;
|
||||
|
||||
public function __construct(int $jobId, int $price, string $link) {
|
||||
public function __construct(int $jobId, float $price, float $threshold, string $link) {
|
||||
parent::__construct($jobId);
|
||||
|
||||
$this->price = $price;
|
||||
$this->threshold = floatval(Job::find($jobId)->jobInfosTable()->get('eldorado_robux_price_threshold'));
|
||||
$this->threshold = $threshold;
|
||||
dump($this->threshold);
|
||||
$this->link = $link;
|
||||
|
||||
$this->setBody($this->generateBody());
|
||||
|
||||
Reference in New Issue
Block a user