Fix eldorado alert float print is incorrect
All checks were successful
Test, build and push image to registry / phpunit-tests (push) Successful in 3m48s
Test, build and push image to registry / build-image (push) Successful in 6m11s

Was converting the value to int and the threshold with floatval only
This commit is contained in:
2025-12-14 15:22:17 +01:00
parent d20702f248
commit 4be1b8d477
2 changed files with 4 additions and 2 deletions

View File

@@ -13,11 +13,12 @@ class EldoradoRobuxPriceNotification extends Notification {
private float $threshold;
private string $link;
public function __construct(int $jobId, int $price, string $link) {
public function __construct(int $jobId, float $price, float $threshold, string $link) {
parent::__construct($jobId);
$this->price = $price;
$this->threshold = floatval(Job::find($jobId)->jobInfosTable()->get('eldorado_robux_price_threshold'));
$this->threshold = $threshold;
dump($this->threshold);
$this->link = $link;
$this->setBody($this->generateBody());