Get daily free even if giveaway fails
All checks were successful
Push image to registry / build-image (push) Successful in 6m51s

This commit is contained in:
2025-03-11 18:46:45 +01:00
parent 5bfaba4a8e
commit a693339f97

View File

@ -47,7 +47,13 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
$this->removePopups($browser);
sleep(5);
$this->signin($browser);
$this->joinFreeGiveaways($browser);
try {
$this->joinFreeGiveaways($browser);
} catch (\Exception $e) {
$this->jobRun->success = false;
$this->jobRun->save();
AllNotification::send(new JobErrorNotification($this->jobId, "Erreur lors de la participation aux concours gratuits", $e->getMessage()));
}
$this->getDailyFree($browser);
$this->jobRun->success = true;