Added job artifacts, dealing with cancelled battle & fixed and improved notification
All checks were successful
Push image to registry / build-image (push) Successful in 4m29s

This commit is contained in:
2025-03-20 19:16:00 +01:00
parent c5f5d94912
commit fadb4d2748
4 changed files with 133 additions and 6 deletions

View File

@ -0,0 +1,37 @@
<?php
namespace App\Browser\Jobs\HellcaseBattles;
use App\Models\HellcaseBattle;
use App\Notification\NotificationBody;
class HellcaseBattlesNotificationBody extends NotificationBody {
private HellcaseBattle $battle;
public function __construct(HellcaseBattle $battle) {
parent::__construct();
$this->battle = $battle;
}
/**
* @inheritDoc
*/
public function toMarkdownString(): string {
return "
- Valeur : **{$this->battle->value} €**
- Lien : **{$this->battle->getUrl()}**
";
}
/**
* @inheritDoc
*/
public function toString(): string {
return "
- Valeur : {$this->battle->value}
- Lien : {$this->battle->getUrl()}
";
}
}