minder change
All checks were successful
Deploy / deploy-staging (push) Successful in 32s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-07-03 02:27:57 +02:00
parent 17c4bf16c2
commit cb8c494a23
4 changed files with 281 additions and 192 deletions

View File

@@ -832,7 +832,7 @@ final class MiningRepository
return is_array($row) ? $this->normalizeRow($row) : null;
}
public function purchaseMiner(string $projectKey, int $offerId, array $payload): array
public function purchaseMiner(string $projectKey, ?int $offerId, array $payload): array
{
if ($this->driver === 'pgsql') {
$stmt = $this->pdo->prepare(
@@ -1430,7 +1430,7 @@ final class MiningRepository
];
}
private function normalizePurchasedPayload(string $projectKey, int $offerId, array $payload): array
private function normalizePurchasedPayload(string $projectKey, ?int $offerId, array $payload): array
{
return [
'project_key' => $projectKey,