diff --git a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php index 1b3c14d..6341f21 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceNotification.php @@ -2,7 +2,6 @@ namespace App\Browser\Jobs\EldoradoRobuxPriceSentry; -use App\Browser\Jobs\HellcaseBattles\EldoradoRobuxPriceNotificationBody; use App\Models\Job; use App\Notification\Notification; use App\Notification\Stringifiable; @@ -18,7 +17,7 @@ class EldoradoRobuxPriceNotification extends Notification { parent::__construct($jobId); $this->price = $price; - $this->threshold = Job::find($jobId)->jobInfosTable()->get('eldorado_robux_price_threshold'); + $this->threshold = floatval(Job::find($jobId)->jobInfosTable()->get('eldorado_robux_price_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 b5b382a..18450bf 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php @@ -94,11 +94,10 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn $lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]/strong')); $lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € " $lowestPrice = $this->textToFloat($lowestPriceText); - $lowestPrice = $lowestPrice / 1000; // Price per Robux + //$lowestPrice = $lowestPrice / 1000; // Price per Robux // TODO : Look at the entire text to try to understand if it is per 1k or per single Robux $threshold = $this->textToFloat($this->jobInfos->get("eldorado_robux_price_threshold")); - dump($threshold); Log::info("EldoradoRobuxPriceSentryJob: lowest price = $lowestPrice €, threshold = $threshold €"); $this->jobRun->addArtifact(new JobArtifact([