Skip to content

Commit

Permalink
rename organizers to uiTdatabankOrganizers
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Aug 5, 2024
1 parent 83d4a8b commit 95c7f5a
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, UpdateIntegrationUiTdata
{
$integration = $this->integrationRepository->getById(Uuid::fromString($integrationId));

$organizerIds = collect($integration->organizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId);
$organizerIds = collect($integration->uiTdatabankOrganizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId);
$newOrganizers = array_filter(
UiTdatabankOrganizerMapper::mapUpdateOrganizers($request, $integrationId),
fn (UiTdatabankOrganizer $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->organizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId);
$organizerIds = collect($integration->uiTdatabankOrganizers())->map(fn (UiTdatabankOrganizer $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<UiTdatabankOrganizer>
*/
public function organizers(): array
public function uiTdatabankOrganizers(): array
{
return $this->uiTdatabankOrganizers;
}
Expand Down

0 comments on commit 95c7f5a

Please sign in to comment.