Added job artifacts
All checks were successful
Push image to registry / build-image (push) Successful in 4m17s
All checks were successful
Push image to registry / build-image (push) Successful in 4m17s
This commit is contained in:
@@ -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 . " )";
|
||||
|
||||
Reference in New Issue
Block a user