From 15c540dcadc1b3bfcb3b90acd1c4b339384dd552 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sat, 1 Nov 2025 15:03:13 +0100 Subject: [PATCH] Added more job artifacts --- .../EldoradoRobuxPriceSentryJob.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php index fb1edf7..f88c828 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php @@ -95,6 +95,7 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn $lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € " $lowestPrice = (float)str_replace(["€", ","], ["", "."], trim($lowestPriceText)); $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 = floatval(str_replace(",", ".", $this->jobInfos->get("eldorado_robux_price_threshold"))); dump($threshold); @@ -122,6 +123,11 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn $options ); + $this->jobRun->addArtifact(new JobArtifact([ + "name" => "Envoyé une alerte", + "content" => "" + ])); + Log::info("EldoradoRobuxPriceSentryJob: alert sent"); } else { Log::info("EldoradoRobuxPriceSentryJob: no alert sent");