diff --git a/app/Domain/Integrations/Controllers/IntegrationController.php b/app/Domain/Integrations/Controllers/IntegrationController.php index 494090561..236c5bcf5 100644 --- a/app/Domain/Integrations/Controllers/IntegrationController.php +++ b/app/Domain/Integrations/Controllers/IntegrationController.php @@ -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) @@ -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) { diff --git a/app/Domain/Integrations/Integration.php b/app/Domain/Integrations/Integration.php index 7eae7a518..3e1691401 100644 --- a/app/Domain/Integrations/Integration.php +++ b/app/Domain/Integrations/Integration.php @@ -180,7 +180,7 @@ public function organization(): ?Organization /** * @return array */ - public function uiTdatabankOrganizers(): array + public function udbOrganizers(): array { return $this->udbOrganizers; }