Skip to content

Commit

Permalink
fix: recurring licensee syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
dehy committed Oct 15, 2024
1 parent 777c7d5 commit b16c79c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Helper/FftaHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Helper;

use App\DBAL\Types\LicenseeAttachmentType;
use App\DBAL\Types\UserRoleType;
use App\Entity\Club;
use App\Entity\License;
use App\Entity\Licensee;
Expand Down Expand Up @@ -91,7 +92,7 @@ public function syncLicensees(Club $club, int $season): array
}

if (!empty($syncResults[SyncReturnValues::CREATED->value]) || !empty($syncResults[SyncReturnValues::UPDATED->value])) {
$managers = $this->userRepository->findByClubAndRole($club, 'ROLE_CLUB_MANAGER', $season);
$managers = $this->userRepository->findByClubAndRole($club, UserRoleType::CLUB_ADMIN, $season);
$this->emailHelper->sendLicenseesSyncResults($managers, $syncResults);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Scheduler/Message/SyncFftaLicensees.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SyncFftaLicensees
{
public function __construct(
private readonly int $id,
private readonly int $clubCode,
private readonly string $clubCode,
private readonly int $season
) {
}
Expand All @@ -16,7 +16,7 @@ public function getId(): int
return $this->id;
}

public function getClubCode(): int
public function getClubCode(): string
{
return $this->clubCode;
}
Expand Down

0 comments on commit b16c79c

Please sign in to comment.