From 4be1b8d4774fca67b4f236aa3a1d7083cbe4a120 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sun, 14 Dec 2025 15:22:17 +0100 Subject: [PATCH] Fix eldorado alert float print is incorrect Was converting the value to int and the threshold with floatval only --- .../EldoradoRobuxPriceNotification.php | 5 +++-- .../EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php index 6341f21..7fd2bc8 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php @@ -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()); diff --git a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php index 18450bf..500d990 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php @@ -115,6 +115,7 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn new EldoradoRobuxPriceNotification( $this->jobId, $lowestPrice, + $threshold, self::LINK ), $options