diff --git a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php index 1ba8e67..3ec2b3d 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php @@ -8,6 +8,7 @@ use App\Browser\Jobs\InstagramRepost\DescriptionPipeline\InstagramDescriptionPip use App\Models\InstagramNotification; use App\Models\InstagramRepost; use App\Models\Job; +use App\Models\JobArtifact; use App\Models\JobRun; use App\Notification\Notifications\JobDebugNotification; use App\Notification\Notifications\SimpleNotification; @@ -98,6 +99,10 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn dump($threshold); Log::info("EldoradoRobuxPriceSentryJob: lowest price = $lowestPrice €, threshold = $threshold €"); + $this->jobRun->addArtifact(new JobArtifact([ + "name" => "Trouvé le prix le plus bas", + "content" => "- Prix le plus bas : $lowestPrice €/Robux\n- Seuil défini : $threshold €/Robux" + ])); if ($lowestPrice <= $threshold) { $message = "Le prix des Robux sur Eldorado est actuellement de **" . number_format($lowestPrice, 5, ",", " ") . " €**/Robux, ce qui est inférieur ou égal au seuil de **" . number_format($threshold, 5, ",", " ") . " €**.\n\n[Voir l'offre sur Eldorado]( " . self::LINK . " )";