Skip to content

Commit

Permalink
rename uiTdatabankOrganizers to udbOrganizers
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Aug 6, 2024
1 parent 4525ba9 commit e211dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Domain/Integrations/Controllers/IntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function updateOrganizers(string $integrationId, UpdateIntegrationUdbOrga
{
$integration = $this->integrationRepository->getById(Uuid::fromString($integrationId));

$organizerIds = collect($integration->uiTdatabankOrganizers())->map(fn (UdbOrganizer $organizer) => $organizer->organizerId);
$organizerIds = collect($integration->udbOrganizers())->map(fn (UdbOrganizer $organizer) => $organizer->organizerId);
$newOrganizers = array_filter(
UdbOrganizerMapper::mapUpdateOrganizers($request, $integrationId),
fn (UdbOrganizer $organizer) => !in_array($organizer->organizerId, $organizerIds->toArray(), true)
Expand Down Expand Up @@ -404,7 +404,7 @@ private function guardUserIsContact(Request $request, string $integrationId): ?R

public function getIntegrationOrganizersWithTestOrganizer(Integration $integration): Collection
{
$organizerIds = collect($integration->uiTdatabankOrganizers())->map(fn (UdbOrganizer $organizer) => $organizer->organizerId);
$organizerIds = collect($integration->udbOrganizers())->map(fn (UdbOrganizer $organizer) => $organizer->organizerId);
$uitpasOrganizers = $this->searchClient->findUiTPASOrganizers(...$organizerIds)->getMember()?->getItems();

$organizers = collect($uitpasOrganizers)->map(function (SapiOrganizer $organizer) {
Expand Down
2 changes: 1 addition & 1 deletion app/Domain/Integrations/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function organization(): ?Organization
/**
* @return array<UdbOrganizer>
*/
public function uiTdatabankOrganizers(): array
public function udbOrganizers(): array
{
return $this->udbOrganizers;
}
Expand Down

0 comments on commit e211dd5

Please sign in to comment.